Question
PART ONE In C# create a Contestant class with the following characteristics: The Contestant class contains public static arrays that hold talent codes and descriptions.
PART ONE In C# create 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, Dancing, Musical instrument, and Other. Name these fields talentCodes and talentStrings respectively.
The class contains an auto-implemented property Name that holds a contestants 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.
Modify the GreenvilleRevenue.cs program (See Program Below) so that it uses the Contestant class and performs the following tasks:
The program prompts the user for the number of contestants in this years 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 O 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.
It still will not let me post the GreenvilleRevenue.cs program because it makes this question too long. I will Post A PART TWO QUESTION with the code.
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