Microsoft Visual C# 7th edition. need help, please. Thanks In previous chapters, you created applications for Marshall’s 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 children’s 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"))); I need help finding customer names for each mural style, please. /*chapter 6*/ int x = 0; bool flag = false; string[,] interiorMuralCustomers = new string[2, numInterior]; string[,] exteriorMuralCustomers = new string[2, numExterior]; int LcountInterior = 0; int ScountInterior = 0; int AcountInterior = 0; int CcountInterior = 0; int OcountInterior = 0; for (x = 0; x < numInterior; ++x) { WriteLine("Enter name of customer {0} for interior mural:", (x + 1)); string name = ReadLine(); interiorMuralCustomers[0, x] = name; do { WriteLine("Enter Mural code. Valid codes are L, S, A, C, and O,"); string code = ReadLine(); if (code == "L" || code == "S" || code == "A" || code == "C" || code == "O") { interiorMuralCustomers[1, x] = code; flag = false; } else {WriteLine("{0} is not a valid code", code); WriteLine("Invalid code. Valid codes are L, S, A, C, and O,"); flag = true; } } while (flag); } for(x=0;x

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Microsoft Visual C# 7th edition. need help, please. Thanks

In previous chapters, you created applications for Marshall’s 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 children’s
  • 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")));

I need help finding customer names for each mural style, please.

/*chapter 6*/
int x = 0;
bool flag = false;

string[,] interiorMuralCustomers = new string[2, numInterior];
string[,] exteriorMuralCustomers = new string[2, numExterior];
int LcountInterior = 0;
int ScountInterior = 0;
int AcountInterior = 0;
int CcountInterior = 0;
int OcountInterior = 0;
for (x = 0; x < numInterior; ++x)
{
WriteLine("Enter name of customer {0} for interior mural:", (x + 1));
string name = ReadLine();
interiorMuralCustomers[0, x] = name;

do
{
WriteLine("Enter Mural code. Valid codes are L, S, A, C, and O,");
string code = ReadLine();
if (code == "L" || code == "S" || code == "A" || code == "C" || code == "O")
{
interiorMuralCustomers[1, x] = code;
flag = false;
}
else
{WriteLine("{0} is not a valid code", code);
WriteLine("Invalid code. Valid codes are L, S, A, C, and O,");
flag = true;
}
}
while (flag);
}
for(x=0;x<numInterior;++x)
{
switch(interiorMuralCustomers[1, x])
{
case "L":
LcountInterior++;
break;
case "S":
ScountInterior++;
break;
case "A":
AcountInterior++;
break;
case "C":
CcountInterior++;
break;
case "O":
OcountInterior++;
break;
}

WriteLine("The interior murals scheduled are:");
WriteLine("Landscape {0}", LcountInterior);
WriteLine("Seascape {0}", ScountInterior);
WriteLine("Abstract {0}", AcountInterior);
WriteLine("Children's {0}", CcountInterior);
WriteLine("Other {0}\n\n", OcountInterior);
}
for (x = 0; x < numExterior; ++x)
{
WriteLine("Enter name of customer {0} for exterior mural:", (x + 2));
string nameExterior = ReadLine();
exteriorMuralCustomers[0, x] = nameExterior;
do
{
WriteLine("Enter Mural code. Valid codes are L, S, A, C, and O,");
string code = ReadLine();
if (code == "L" || code == "S" || code == "A" || code == "C" || code == "O")
{
exteriorMuralCustomers[1, x] = code;
flag = false;
}
else
{WriteLine("{0} is not a valid code", code);
WriteLine("Invalid code. Valid codes are L, S, A, C, and O,");
flag = true;
}
}
while (flag);
}
int LcountExterior =0, ScountExterior =0, AcountExterior =0, CcountExterior =0, OcountExterior = 0;

for (x = 0; x < numExterior; ++x)
{
switch (exteriorMuralCustomers[1, x])
{
case "L":
LcountExterior++;
break;
case "S":
ScountExterior++;
break;
case "A":
AcountExterior++;
break;
case "C":
CcountExterior++;
break;
case "O":
OcountExterior++;
break;
}

WriteLine("The exterior murals scheduled are:");
WriteLine("Landscape {0}", LcountExterior);
WriteLine("Seascape {0}", ScountExterior);
WriteLine("Abstract {0}", AcountExterior);
WriteLine("Children's {0}", CcountExterior);
WriteLine("Other {0}\n\n", OcountExterior);
}

WriteLine("Customers ordering Landscape murals are:");
        WriteLine(?????????);
        WriteLine("Customers ordering Seascape murals are:");
        WriteLine(???????); and so on. Thank you.

}

Y 2 Quick Launch (Ctrl+Q)
6-2 y MarshallsRevenue.cs* - Microsoft Visual Studio
File
Edit
View
Project
Debug
Team
Tools
Test
Analyze
Window
Help
Yawa Hallo - YH
- Attach... -
6-2 y MarshallsRevenue.cs* + X
-, MarshallsRevenue
while ((monthnumber < 1) || (monthnumber > 12))
C# Miscellaneous Files
O, Main()
29
{
Console.Writeline("Invalid");
Console.Write("Enter number of month being scheduled 1-12 >> ");
monthnumber = Convert. ToInt32(Console.ReadLine());
}
30
31
32
33
34
35
Console.Write("Enter number of interior murals scheduled 0-30 >> ");
entryString = Console.ReadLine();
numInterior = Convert.ToInt32(entryString);
36
37
38
39
while ((numInterior < 0) || (numInterior > 30))
{
Console.Writeline("Invalid");
Console.Writeline("Enter number of interior murals scheduled 0-30 >>");
numInterior = Convert. ToInt32(Console.ReadLine());
40
41
42
43
44
45
}
46
Console.Write("Enter number of exterior murals scheduled 0-30 >> ");
entryString = Console.ReadLine();
numExterior = Convert.ToInt32(entryString);
47
48
49
50
51
while ((numExterior < 0) || (numExterior > 30))
{
Console.Writeline ("Invalid");
Console.Writeline("Enter number of exterior murals scheduled 0-30 >>");
numExterior = Convert.ToInt32(Console.ReadLine());
52
53
54
55
121 %
Ready
Ln 211
Col 10
Ch 10
INS
1 Publish -
8:52 AM
P Type here to search
a 4) ENG
2/25/2021
Transcribed Image Text:Y 2 Quick Launch (Ctrl+Q) 6-2 y MarshallsRevenue.cs* - Microsoft Visual Studio File Edit View Project Debug Team Tools Test Analyze Window Help Yawa Hallo - YH - Attach... - 6-2 y MarshallsRevenue.cs* + X -, MarshallsRevenue while ((monthnumber < 1) || (monthnumber > 12)) C# Miscellaneous Files O, Main() 29 { Console.Writeline("Invalid"); Console.Write("Enter number of month being scheduled 1-12 >> "); monthnumber = Convert. ToInt32(Console.ReadLine()); } 30 31 32 33 34 35 Console.Write("Enter number of interior murals scheduled 0-30 >> "); entryString = Console.ReadLine(); numInterior = Convert.ToInt32(entryString); 36 37 38 39 while ((numInterior < 0) || (numInterior > 30)) { Console.Writeline("Invalid"); Console.Writeline("Enter number of interior murals scheduled 0-30 >>"); numInterior = Convert. ToInt32(Console.ReadLine()); 40 41 42 43 44 45 } 46 Console.Write("Enter number of exterior murals scheduled 0-30 >> "); entryString = Console.ReadLine(); numExterior = Convert.ToInt32(entryString); 47 48 49 50 51 while ((numExterior < 0) || (numExterior > 30)) { Console.Writeline ("Invalid"); Console.Writeline("Enter number of exterior murals scheduled 0-30 >>"); numExterior = Convert.ToInt32(Console.ReadLine()); 52 53 54 55 121 % Ready Ln 211 Col 10 Ch 10 INS 1 Publish - 8:52 AM P Type here to search a 4) ENG 2/25/2021
Y 2 Quick Launch (Ctrl+Q)
6-2 y MarshallsRevenue.cs* - Microsoft Visual Studio
File
Edit
View
Project
Debug
Team
Tools
Test
Analyze
Window
Help
Yawa Hallo - YH
• Attach.. -
6-2 y MarshallsRevenue.cs* + X
C# Miscellaneous Files
* MarshallsRevenue
O, Main()
Busing System;
using static System.Console;
2
using System.Globalization;
Eclass MarshallsRevenue
{
static void Main()
{
const int INTERIOR_PRICE = 500;
8
const int EXTERIOR_PRICE = 750;
string entryString;
int numInterior;
int numExterior;
10
11
12
int revenueInterior;
int revenueExterior;
int total;
bool isInteriorGreater;
bool valid;
13
14
15
16
17
18
valid = true;
int monthnumber;
int interiorRate;
19
20
int exteriorRate;
interiorRate = INTERIOR_PRICE;
exteriorRate = EXTERIOR_PRICE;
21
22
23
24
Console.Write("Enter number of month being scheduled 1-12 >> ");
entryString = Console.ReadLine();
monthnumber = Convert.ToInt32(entryString);
25
26
27
121 %
Ready
Ln 211
Col 10
Ch 10
INS
1 Publish -
8:52 AM
O Type here to search
a 4) ENG
2/25/2021
Transcribed Image Text:Y 2 Quick Launch (Ctrl+Q) 6-2 y MarshallsRevenue.cs* - Microsoft Visual Studio File Edit View Project Debug Team Tools Test Analyze Window Help Yawa Hallo - YH • Attach.. - 6-2 y MarshallsRevenue.cs* + X C# Miscellaneous Files * MarshallsRevenue O, Main() Busing System; using static System.Console; 2 using System.Globalization; Eclass MarshallsRevenue { static void Main() { const int INTERIOR_PRICE = 500; 8 const int EXTERIOR_PRICE = 750; string entryString; int numInterior; int numExterior; 10 11 12 int revenueInterior; int revenueExterior; int total; bool isInteriorGreater; bool valid; 13 14 15 16 17 18 valid = true; int monthnumber; int interiorRate; 19 20 int exteriorRate; interiorRate = INTERIOR_PRICE; exteriorRate = EXTERIOR_PRICE; 21 22 23 24 Console.Write("Enter number of month being scheduled 1-12 >> "); entryString = Console.ReadLine(); monthnumber = Convert.ToInt32(entryString); 25 26 27 121 % Ready Ln 211 Col 10 Ch 10 INS 1 Publish - 8:52 AM O Type here to search a 4) ENG 2/25/2021
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY