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.
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
In Chapter 1, you created two programs to display the motto for Marshall’s Murals. Now write a
![](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F03a47def-26f7-40b1-a186-8f73f23091f5%2Fa497ea8f-8fef-4a7a-ab70-d2e6d77dc872%2Fpoujrdd.png&w=3840&q=75)
![](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F03a47def-26f7-40b1-a186-8f73f23091f5%2Fa497ea8f-8fef-4a7a-ab70-d2e6d77dc872%2F8wg05x.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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](https://content.bartleby.com/qna-images/question/5ac771d0-d256-4ee4-b7ac-1580c40cec9b/a251368c-a358-4e9b-8adf-b574514bb10c/avzcxam_thumbnail.png)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)