Question: Need help in C# coding. Instructions are in the picture. Instructions 1 2 using System; 3 using static System.Console; 4 class GreenvilleRevenue In Chapter 2,
Need help in C# coding. Instructions are in the picture.

Instructions 1 2 using System; 3 using static System.Console; 4 class GreenvilleRevenue In Chapter 2, you created an interactive application named GreenvilleRevenue The program prompts a user for the number of contestants entered in this year's and last year's Greenville Idol competition, and then it displays the revenue expected for this year's competition if each contestant pays a $25 entrance fee 6 static void Main( const int ENTRANCE FEE = 25; string entryString; int numThisYear; int numLastYear; int revenue; bool isThisYearGreater; Write( "Enter number of contestants last yer"); entryString = ReadLine(); numLastYear = Convert.ToInt32(entrySt ring); Write( "Enter number of contestants this yer"); entrySt ring ReadLine(); nunThisYear = Convert.ToInt32(entryString); revenuenunThisYear * ENTRANCE FEE; isThisYearGreater numThisYearnumLastYear; WriteLine("Last year's competition had [o) contestants, 10 12 13 14 15 16 17 18 19 20 21 The programs also display a statement that compares the number of contestants each year. Now, replace that statement with one of the following messages: If the competition has more than twice as many contestants as last year, display The competition is more than twice as big this year! and this year's has 1 contestants", 23 24 If the competition is bigger than last year's but not more than twice as big, display The competition is bigger than ever! numLastYear, numThisYear); WriteLine( "Revenue expected this year is [0}", revenue. ToString("C)); 25 WriteLine("It is 0 that this year's competition is If the competition is smaller than last year's, display, A tighter race this year! Come out and cast your vote! bigger than last year's.", isThisYearGreater); 26 27
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
