Last minute help, I have no clue why I cannot get the right output in this. my current input: static void Main() { Write("Enter the number of contestants entered in last year's event: 6"); int last = Int32.Parse (ReadLine ()); Write("Enter the number of contestants entered in this year's competition: 14"); int curr = Int32.Parse (ReadLine ()); WriteLine("Last year's competition had {6} contestants, and this year's has {14} contestants", last, curr); WriteLine ("Revenue expected this year is {350.00}",(curr*25).ToString("C", CultureInfo.GetCultureInfo("en-US"))); if (curr > last) WriteLine("It is True that this year's competition is bigger than last year's"); c# 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 GreenvilleRevenue that prompts a user for the number of contestants entered in last year’s competition and in this year’s competition. Display all the input data. Compute and display the revenue expected for this year’s competition if each contestant pays a $25 entrance fee. Also display a statement that indicates whether this year’s competition has more contestants than last year’s. An example of the program is shown below: Enter number of contestants last year >> 6 Enter number of contestants this year >> 14 Last year's competition had 6 contestants, and this year's has 14 contestants Revenue expected this year is $350.00 It is True that this year's competition is bigger than last year's. Use the output structure displayed above in your program's output. 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: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US")));

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Last minute help, I have no clue why I cannot get the right output in this. my current input:

static void Main()

{ Write("Enter the number of contestants entered in last year's event: 6");

int last = Int32.Parse (ReadLine ());

Write("Enter the number of contestants entered in this year's competition: 14");

int curr = Int32.Parse (ReadLine ());

WriteLine("Last year's competition had {6} contestants, and this year's has {14} contestants", last, curr);

WriteLine ("Revenue expected this year is {350.00}",(curr*25).ToString("C", CultureInfo.GetCultureInfo("en-US")));

if (curr > last)

WriteLine("It is True that this year's competition is bigger than last year's");

c#

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 GreenvilleRevenue that prompts a user for the number of contestants entered in last year’s competition and in this year’s competition. Display all the input data. Compute and display the revenue expected for this year’s competition if each contestant pays a $25 entrance fee. Also display a statement that indicates whether this year’s competition has more contestants than last year’s. An example of the program is shown below: Enter number of contestants last year >> 6 Enter number of contestants this year >> 14 Last year's competition had 6 contestants, and this year's has 14 contestants Revenue expected this year is $350.00 It is True that this year's competition is bigger than last year's. Use the output structure displayed above in your program's output. 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: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US")));  

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education