INFORMATION TECHNOLOGY
SCHOOL BASED ASSESSMENT – 2013
Problem Solving & Program Design Teacher: Mrs. R. Barran
Answer all of the following.
Carnival has long been a traditional cultural festival in several Caribbean territories. Every year, thousands of costumed masqueraders parade through the streets, dancing to the pulsating sounds of steelband, calypso and soca. Most of these revelers register to participate in the band of their choice months before the festivities begin. Organizers of these bands must utilize management and organizational skills in order to stage a successful event. As a bandleader of one these carnival bands, you are required to use a programming applicationto design and implement a computer-based solution in the management of your carnival band.
There are five sections in the band. The cost of costumes is quoted in US dollars. The cost by section is given in the table below:
SECTION
COST OF COSTUME
A
$160
B
$220
C
$280
D
$350
E
$425
Problem-Solving
1. Develop an algorithm or write pseudocode that accepts as input the names of no more than twelve masqueraders who each have paid the full cost of their costume and the amount each has paid. A masquerader may have paid for a costume in any of the five sections in the band. The algorithm should determine the section in which a masquerader plays based on the amount he/she has paid for the costume. The algorithm should also determine the number of masqueraders who have paid for costumes in each section. The names of persons and the section for which they have paid should be printed. A listing of section and the total number of persons registered to play in each section should also be printed, along with the total amount of money paid in each section.
2. You are required to make a random listing of persons who have paid in full for their costumes. The listing should contain the masquerader’s name, and full amount paid by each masquerader for