Question: In C# , please write a program named QueenslandRevenue that performs the following tasks. Step 1 : Prompting a user for the number of contestants

In C#, please write a program named QueenslandRevenue that performs the following tasks.
Step 1: Prompting a user for the number of contestants who entered last year's competition and this years competition. The user must enter a number between 0 and 30, inclusive, for the number of contestants each year. If the user enters an incorrect number, the program prompts for a valid value with the statement: "Value not valid. Please try again."
Step 2: Displaying all the input data.
Step 3: Display the statement that shows a statistic of contestants attending.
Case 1: If the competition has more than twice as many contestants as last year, display 'The competition is more than twice as big this year!'
Case 2: If the competition is equal to or bigger than last years but not more than twice as big, display 'The competition is bigger than ever!'
Case 3: If the competition is smaller than last years, display 'A tighter race this year! Come out and cast your vote!'
Step 4: After the user enters the number of contestants in this years competition, the user is prompted to enter the appropriate number of contestant names and a code for each contestant that indicates the type of talent: S for singing, D for dancing, M for playing a musical instrument or O for other. Make sure that all entered codes are valid, and if not, re-prompt the user to enter a correct code with the statement: "Value not valid. Please try again."
Step 5: After the contestant data entry is complete, display a count of each type of talent. Then, continuously prompt the user for a talent code until the user enters a sentinel value. With each code entry, display a list of the contestants with that code, or display a message that the code is not valid and re-prompt the user, using statement: "Value not valid. Please try again."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!