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
![## Educational Webpage: Understanding a Simple C# Program for Calculating Mural Revenues
### Overview
This C# program calculates expected revenues from interior and exterior murals. It also compares the revenues to determine which type yields more financial return.
### Code Explanation
#### Libraries and Namespace
```csharp
using System;
using static System.Console;
using System.Globalization;
```
These lines import essential libraries and namespaces for input, output, and globalization features.
#### Define Class and Main Method
```csharp
class MarshallsRevenue
{
static void Main(string[] args)
{
```
The class `MarshallsRevenue` contains the `Main` method where program execution begins.
#### Variables Declaration
```csharp
int int_num, ext_num, r;
double int_rev, ext_rev, tot_rev = 0;
```
This declares integer variables for the number of interior and exterior murals and double variables for their respective revenues and total revenue.
#### Input Handling
```csharp
Console.WriteLine("Enter a Number of interior murals : ");
int_num = int.Parse(Console.ReadLine());
Console.WriteLine("Enter a Number of exterior murals : ");
ext_num = int.Parse(Console.ReadLine());
```
This section prompts the user to input the number of interior and exterior murals and parses the input into integers.
#### Revenue Calculation
```csharp
int_rev = int_num * 500;
ext_rev = ext_num * 750;
tot_rev = int_rev + ext_rev;
```
Here, the program calculates revenues: $500 per interior mural and $750 per exterior mural. It then calculates the total expected revenue.
#### Output Generated Revenue
```csharp
Console.WriteLine(int_num + " interior murals are scheduled for a total of " + int_rev);
Console.WriteLine(ext_num + " exterior murals are scheduled for a total of " + ext_rev);
Console.WriteLine("Total revenue expected: " + tot_rev);
```
This outputs the calculated revenues for each type of mural and the total revenue.
#### Revenue Comparison
```csharp
if (int_rev > ext_rev)
{
Console.WriteLine("The cost of interior murals is more than exterior murals");
}
else if (ext_rev > int_rev)
{
Console.WriteLine("The cost of exterior murals is more than interior murals");
}
```
This logic compares interior and exterior mural revenues and outputs which type is more lucrative.
#### Code Details
- **Warning**: There](https://content.bartleby.com/qna-images/question/5ac771d0-d256-4ee4-b7ac-1580c40cec9b/a251368c-a358-4e9b-8adf-b574514bb10c/avzcxam_thumbnail.png)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)