Question: Microsoft Visual C# In Chapter 6, you continued to modify the GreenvilleRevenue program. Now, modify the program so that the major functions appear in the

Microsoft Visual C#

In Chapter 6, you continued to modify the GreenvilleRevenue program. Now, modify the program so that the major functions appear in the following individual methods:

GetContestantNumber - This method gets and returns a valid number of contestants and is called twice once for last years number of contestants and once for this years value

DisplayRelationship - This method accepts the number of contestants this year and last year and displays one of the three messages that describes the relationship between the two contestant values

GetContestantData - This method fills the array of competitors and their talent codes

GetLists - This method continuously prompts for talent codes and displays contestants with the corresponding talent until a sentinel value is entered

**PLEASE DO NOT USE OTHER ANSWERS ALREADY GIVEN - Those use things like Console.Write or Console.Read etc... when the "using static System.Console; already being used you don't need to write Console."whatever here" in the code. Although do use is as reference because the output is correct - here's a link: https://www.chegg.com/homework-help/questions-and-answers/solve-c-given-following-code-chapter-6-continued-modify-greenvillerevenue-program-modify-p-q27742044

Also please use the following variables and constants:

const int ENTRANCE_FEE = 25; const int MIN_CONTESTANTS = 0; const int MAX_CONTESTANTS = 30; int numThisYear; int numLastYear; int revenue;

Here is the starting code already given by the book exercise:

using System; using static System.Console; class GreenvilleRevenue { static void Main() { // Write your main here. } public static int GetContestantNumber(string when, int min, int max) { // Write your GetContestantNumber() here. } public static void DisplayRelationship(int numThisYear, int numLastYear) { // Write your DisplayRelationship() here. } public static void GetContestantData(int numThisYear, string[] names, char[] talents, char[] talentCodes, string[] talentCodesStrings, int[] counts) { // Write your GetContestantData() here. } public static void GetLists(int numThisYear, char[] talentCodes, string[] talentCodesStrings, string[] names, char[] talents, int[] counts) { // Write your GetLists() here. } }

Thank you so very much for your help with this question.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!