2
Problem solving and programming Program Description The program is required to accept the number of masqueraders who have paid for their costumes in full. The program should then determine the section in which a masquerader plays based on the amount he or she paid for the costume. The total number of persons are to be registered and their total amount of money paid. Their names and corresponding sections should be printed. Trace Table ID# Sectio n First Name Last Name Name of Band Costume Payment Total Payment(U S) B909 1 Lionel Messi Hott Flames $ 144.00 $ 294.00 B910 1 Per Mertersac ker Hott Flames $ 144.00 $ 294.00 B919 2 Christi ano Ronaldo Dynamite Flamez $ 198.00 $ 348.00 B933 3 Mario Balotelli The Quengerz $ 252.00 $ 302.00 B936 3 Steven Gerrard The Quengerz $ 252.00 $ 402.00 B954 4 Wayne Rooney Konshense Warriors $ 315.00 $ 365.00 B955 4 Luke Shaw Konshense Warriors $ 315.00 $ 365.00 B960 5 Romario Baker Hot Steppaz $ 382.50 $ 432.50 Total Masquerader 8 Total Costume $

Problem Solving and Programming

Embed Size (px)

DESCRIPTION

problem solving

Citation preview

Problem solving and programmingProgram Description

The program is required to accept the number of masqueraders who have paid for their costumes in full. The program should then determine the section in which a masquerader plays based on the amount he or she paid for the costume. The total number of persons are to be registered and their total amount of money paid. Their names and corresponding sections should be printed. Trace Table ID#SectionFirst Name Last NameName of BandCostume Payment Total Payment(US)

B9091LionelMessiHott Flames $ 144.00 $ 294.00

B9101PerMertersackerHott Flames $ 144.00 $ 294.00

B9192Christiano RonaldoDynamite Flamez $ 198.00 $ 348.00

B9333Mario BalotelliThe Quengerz $ 252.00 $ 302.00

B9363Steven GerrardThe Quengerz $ 252.00 $ 402.00

B9544WayneRooneyKonshense Warriors $ 315.00 $ 365.00

B9554LukeShawKonshense Warriors $ 315.00 $ 365.00

B9605RomarioBakerHot Steppaz $ 382.50 $ 432.50

Total Masquerader8

Total Costume Payment $ 2,802.50

Section 1 Total $ 588.00

Section 2 Total $ 348.00

Section 3 Total $ 704.00

Section 4 Total $ 730.00

Section 5 Total $ 432.50