write a program named MarshallsRevenue that prompts a user for the number of interior and exterior murals scheduled to be painted during the next month. Compute the expected revenue for each type of mural. Interior murals cost $500 each, and exterior murals cost $750 each. Also, display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter3: Using Gui Objects And The Visual Studio Ide
Section: Chapter Questions
Problem 2CP: In Chapter 2, you created a program for Marshalls Murals that prompts a user for the number of...
icon
Related questions
Question

In Chapter 1, you created two programs to display the motto for Marshall’s Murals. Now write a program named MarshallsRevenue that prompts a user for the number of interior and exterior murals scheduled to be painted during the next month. Compute the expected revenue for each type of mural. Interior murals cost $500 each, and exterior murals cost $750 each. Also, display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

this is error message I get 

Case Problem 5-2
3
</>
Tasks
0.67
out of
10.00
Checks
Program Outputs Correctly
O out of 3 checks passed. Review the results below for more
details.
Test Case Incomplete
Successful Output I
Test Case Incomplete
Successful Output II
Test Case Incomplete
Successful Output (Invalid)
>
>
>
Marshalls Revenue.cs +
1 using System;
2 using static System.Console;
3 using System. Globalization;
4 class Marshalls Revenue
5
6 {
7 static void Main(string[] args)
8 {
9 int int_num, ext_num, I;
10 double int_rev, ext_rev, tot_rev=0;
11 //input number of interior murals
12 Console.WriteLine("Enter a Number of interior murals : ");
13 //read the input and parse into an integer
14 int_num = int.Parse(Console.ReadLine());
15 //input number of exterior murals
16 Console.WriteLine("Enter a Number of exterior murals : ");
17 //read the input and parse into an integer
18 ext_num= int.Parse(Console.ReadLine());
19 //compute interior murals revenue
20 int_rev-int_num*500;
21 //compute exterior murals revenue
22 ext_rev=ext_num*750;
23 //calculate total expected revenue
24 tot_rev=int_rev + ext_rev;
25 //print all generated revenues
26 Console.WriteLine(int_num+" interior murals are scheduled for a total of "+int_rev)
27 Console.WriteLine(ext_num+" exterior murals are scheduled for a total of +ext_rev
28 Console.WriteLine("Total revenue expected : "+tot_rev);
"I
29 //check if interior murals revenue is greater than exterior murals revenue
30 if(int_rev>ext_rev)
31 {
32 Console.WriteLine("The cost of interior murals is more than exterior murals");
33}
34 else if(ext_rev>int_rev)
35 {
36 Console.WriteLine("The cost of exterior murals is more than interior murals");
37}
38 Console.ReadLine();
39}
40}
41
42
>_ Terminal
X
MarshallsRevenue.cs (9,22): warning CS0168: The
variable `r' is declared but never used
Compilation succeeded - 1 warning(s)
Enter a Number of interior murals :
0
Transcribed Image Text:Case Problem 5-2 3 </> Tasks 0.67 out of 10.00 Checks Program Outputs Correctly O out of 3 checks passed. Review the results below for more details. Test Case Incomplete Successful Output I Test Case Incomplete Successful Output II Test Case Incomplete Successful Output (Invalid) > > > Marshalls Revenue.cs + 1 using System; 2 using static System.Console; 3 using System. Globalization; 4 class Marshalls Revenue 5 6 { 7 static void Main(string[] args) 8 { 9 int int_num, ext_num, I; 10 double int_rev, ext_rev, tot_rev=0; 11 //input number of interior murals 12 Console.WriteLine("Enter a Number of interior murals : "); 13 //read the input and parse into an integer 14 int_num = int.Parse(Console.ReadLine()); 15 //input number of exterior murals 16 Console.WriteLine("Enter a Number of exterior murals : "); 17 //read the input and parse into an integer 18 ext_num= int.Parse(Console.ReadLine()); 19 //compute interior murals revenue 20 int_rev-int_num*500; 21 //compute exterior murals revenue 22 ext_rev=ext_num*750; 23 //calculate total expected revenue 24 tot_rev=int_rev + ext_rev; 25 //print all generated revenues 26 Console.WriteLine(int_num+" interior murals are scheduled for a total of "+int_rev) 27 Console.WriteLine(ext_num+" exterior murals are scheduled for a total of +ext_rev 28 Console.WriteLine("Total revenue expected : "+tot_rev); "I 29 //check if interior murals revenue is greater than exterior murals revenue 30 if(int_rev>ext_rev) 31 { 32 Console.WriteLine("The cost of interior murals is more than exterior murals"); 33} 34 else if(ext_rev>int_rev) 35 { 36 Console.WriteLine("The cost of exterior murals is more than interior murals"); 37} 38 Console.ReadLine(); 39} 40} 41 42 >_ Terminal X MarshallsRevenue.cs (9,22): warning CS0168: The variable `r' is declared but never used Compilation succeeded - 1 warning(s) Enter a Number of interior murals : 0
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Introduction to Coding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning