Question: In C# . Please help with correct code. I have not found any other code on here that worked. In previous chapters, you have created
In C# Please help with correct code. I have not found any other code on here that worked.
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, Dancing, Musical instrument, and Other. Name these fields talentCodes and talentStrings respectively.
The class contains an autoimplemented 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 readonly 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.GetCultureInfo 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: WriteLineThis is an example: value.ToStringC CultureInfo.GetCultureInfoenUS;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
