Question: In previous chapters, you continued to modify the MarshallsRevenue program. Now, modify the program so that the major functions appear in the following individual methods:

In previous chapters, you continued to modify the MarshallsRevenue program. Now, modify the program so that the major functions appear in the following individual methods:

  • GetMonth - This method prompts for and returns the month
  • GetNumMurals - This method prompts for and returns the number of murals scheduled and is called twice -- once for interior murals and once for exterior murals
  • ComputeRevenue - This method accepts the number of interior and exterior murals scheduled, accepts the month they are scheduled, displays the interior and exterior prices, and then returns the total expected revenue
  • DataEntry - This method fills an array with customer names and mural codes and is called twice -- once to fill the array of interior murals and once to fill the array of exterior murals
  • GetSelectedMurals - This method continuously prompts for mural codes and displays jobs of the corresponding type until a sentinel value is entered.

In previous chapters, you continued to modify the MarshallsRevenue program. Now, modify

PROVIDED CODE BELOW

using System;

using static System.Console;

class MarshallsRevenue

{

static void Main()

{

// Write your main here.

}

public static int GetMonth()

{

// Write your GetMonth() method here.

}

public static int GetNumMurals(string location)

{

// Write your GetNumMurals() method here.

}

public static int ComputeRevenue(int month, int numInterior, int numExterior)

{

// Write your ComputeRevenue() method here.

}

public static void DataEntry(string location, int num, string[] customers, char[] muralCodes, string[] muralCodesStrings, char[] codes, int[] counts)

{

// Write your DataEntry() method here.

}

public static void GetSelectedMurals(char[] muralCodes, string[] muralCodesStrings, int numInterior, int numExterior, string[] interiorCustomers, char[] interiorCodes, string[] exteriorCustomers, char[] exteriorCodes)

{

// Write your GetSelectedMurals() method here.

}

}

the marshalls revenue program is the code i provides below

Tasks GetMonth methods returns the input month > GetNumMurals method returns the number of mural input > ComputeRevenue method returns total expected revenue DataEntry method accepts customer names and mural types > GetSelectedMurals method displays customer name and job type Tasks GetMonth methods returns the input month > GetNumMurals method returns the number of mural input > ComputeRevenue method returns total expected revenue DataEntry method accepts customer names and mural types > GetSelectedMurals method displays customer name and job type

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!