Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 : 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 and 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 : Displaying all the input data.
Step : Display the statement that shows a statistic of contestants attending.
Case : 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 : 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 : If the competition is smaller than last years display 'A tighter race this year! Come out and cast your vote!
Step : 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, reprompt the user to enter a correct code with the statement: "Value not valid. Please try again."
Step : 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 reprompt the user, using statement: "Value not valid. Please try again."
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started