In: Computer Science
In Chapter 1, you created two programs to display the motto for the Greenville Idol competition that is held each summer during the Greenville County Fair.
Now write a program named GreenvilleRevenuethat prompts a user for the number of contestants entered in last year’s competition and in this year’s competition.
If you have any doubts, please give me comment...
using System;
using static System.Console;
class GreenvilleRevenue {
static void Main () {
int last = Int32.Parse (ReadLine ());
int curr = Int32.Parse (ReadLine ());
WriteLine("Last year's competition has {0} contestants, and this year's has {1} contestants", last, curr);
WriteLine ("The revenue expected for this year's competition " + (curr*25).ToString("$#,###.00"));
if (curr > last)
WriteLine ("It is True that this year's competition is bigger than last years's");
else
WriteLine ("It is False that this year's competition is bigger than last year's");
}
}