Question: 1. CODE FOR C # PROGRAMMING In previous chapters, you created applications for Marshalls Murals. Now, modify the version of the MarshallsRevenue program created in

1. CODE FOR C # PROGRAMMING

In previous chapters, you created applications for Marshalls Murals.

Now, modify the version of the MarshallsRevenue program created in Chapter 5 so that after mural data entry is complete, the user is prompted for the appropriate number of customer names for both the interior and exterior murals and a code for each that indicates the mural style:

  • L for landscape
  • S for seascape
  • A for abstract
  • C for childrens
  • O for other

When a code is invalid, re-prompt the user for a valid code continuously. For example, if Y is input, output Y is not a valid code, and re-prompt the user until a valid code is entered.

After data entry is complete, display a count of each type of mural. For example the output should be in the following format with the correct number next to each mural type:

The interior murals scheduled are: Landscape 1 Seascape 2 Abstract 1 Children's 3 Other 9 The exterior murals scheduled are: Landscape 4 Seascape 0 Abstract 2 Children's 4 Other 0

Then, continuously prompt the user for a mural style code until the user enters a sentinel value (the uppercase character Z should be used as the sentinel value).

With each code entry, display a list of all the customers with that code and whether their mural is interior or exterior. If the requested code is invalid, display an appropriate message and re-prompt the user. For example if L is input, the output might be:

Customers ordering Landscape murals are: Katie Interior Jake Exterior

If U is entered, the output should be U is not a valid code.

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")));

My Code:

using System;

using static System.Console;

using System.Globalization;

class MarshallsRevenue

{

static void Main()

{

// Your code here

}

}

Can someone help me with this? PLEASE TYPE ANSWERS

1. CODE FOR C # PROGRAMMING In previous chapters, you created applicationsfor Marshalls Murals. Now, modify the version of the MarshallsRevenue program createdin Chapter 5 so that after mural data entry is complete, theuser is prompted for the appropriate number of customer names for both

Program correctly accepts and displays mural and customer information Correctly handles invalid mural code when entering mural information Test Case Incomplete > Correctly handles invalid mural code when viewing customers for a mural type Program correctly handles invalid mural code input > 0.00 out of 10.00 O out of 2 checks passed. Review the results below for more details. Checks Test Case Incomplete Correctly handles invalid mural code when entering mural information Input 5 Paul NESTO Output Results W is not a valid code Expected Output W is not a valid code O Test Case Incomplete Correctly handles invalid mural code when viewing customers for a mural type Input 5 1 dul W L z Output Results W is not a valid code Expected Output W is not a valid code O Test Case Incomplete Correctly handles invalid mural code when viewing customers for a mural type Input 5 1 0 Amy L Y Z Output Results Y is not a valid code Expected Output Y is not a valid code 0

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!