Question: In previous chapters, you have created programs for the Greenville Idol competition. Now add a Contestant class with the following characteristics: The Contestant class contains

In previous chapters, you have created programsIn previous chapters, you have created programs

In previous chapters, you have created programs for the Greenville Idol competition. Now add a Contestant class with the following characteristics: The Contestant class contains public static arrays that hold talent codes and descriptions. Recall that the talent categories are Singing. Danoing. Musioal instrument, and Other. Name these fields talentCodes and talentStrings respectively. The class contains an auto-implemented property Name that holds a contestant's name The class contains fields for a talent code ( talentCode ) and description (talent ). The set accessor for the code assigns a code only if it is valid. Otherwise, it assigns I for Invalid.The talent description is a read- only property that is assigned a value when the code is set. In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCulture Info method. In order to do this, include the statement using System. Globalization; at the top of your program and format the output statements as follows: WriteLine("This is an example: {0}", value. ToString("C", Culture Info.GetCulture Info("en-US")); Modify the Greenville Revenue program so that it uses the contestant class and performs the following tasks: The program prompts the user for the number of contestants in this year's competition, the number must be between 0 and 30. The program continues to prompt the user until a valid value is entered. The expected revenue is calculated and displayed. The revenue is $25 per contestant. For example if there were 3 contestants, the expected revenue would be displayed as: Revenue expected this year is $75.00 The program prompts the user for names and talent codes for each contestant entered. Along with the prompt for a talent code, display a list of the valid categories. The categories should be displayed in the following format The types of talent are: S Singing D Dancing M Musical instrument 0 Other After data entry is complete, the program displays the valid talent categories and then continuously prompts the user for talent codes and displays the names of all contestants in the category. Appropriate messages are displayed if the entered code is not a character or a valid code. Grading When you have completed your program, click the Submit button to record your score

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 General Management Questions!