Question: Modify your MarshallsRevenue program created in the previous chapter so that it performs the following tasks: Modify the program to use exception - handling techniques

Modify your MarshallsRevenue program created in the previous chapter so that it performs the following tasks:
Modify the program to use exception-handling techniques to ensure valid values for the month, the number of interior murals scheduled, and the number of exterior murals scheduled. In each case, the program continues to prompt the user until valid entries are made.
Modify the program to use exception-handling techniques to ensure valid mural codes for the scheduled jobs.
After data entry is complete, the program continuously prompts the user for codes and displays associated jobs. Use exception-handling techniques to verify valid codes.
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")));
How to Use the Code Editor
1. Select the "Run Code" button to execute the program.
2. Select the "Calculate Grade" button to generate a score based on the completed tasks.
3. Continue to modify, run, and calculate your code until you are happy with the grade.
4. Select the "Submit" button to turn in the assignment to your instructor.
Modify your MarshallsRevenue program created in the previous chapter so that it performs the following tasks:
- Modify the program to use exception-handling techniques to ensure valid values for the month, the number of interior murals scheduled, and the number of exterior murals scheduled. In each case, the program continues to prompt the user until valid entries are made.
- Modify the program to use exception-handling techniques to ensure valid mural codes for the scheduled jobs.
- After data entry is complete, the program continuously prompts the user for codes and displays associated jobs. Use exception-handling techniques to verify valid codes.
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")));
Task \#01: Exceptions implemented
Modify your MarshallsRevenue program created in

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 Programming Questions!