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 exceptionhandling 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 exceptionhandling 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 exceptionhandling 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: WriteLineThis is an example: value.ToStringC CultureInfo.GetCultureInfoenUS;
How to Use the Code Editor
Select the "Run Code" button to execute the program.
Select the "Calculate Grade" button to generate a score based on the completed tasks.
Continue to modify, run, and calculate your code until you are happy with the grade.
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 exceptionhandling 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 exceptionhandling 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 exceptionhandling 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: WriteLineThis is an example: value.ToStringC CultureInfo.GetCultureInfoenUS;
Task #: Exceptions implemented
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
