Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago