Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

How does the Internet change consumer and supplier relationships?

Answered: 1 week ago

Question

What is the role of the Joint Commission in health care?

Answered: 1 week ago