Question: C# Programming ArgumentException is an existing class that derives from Exception; you use it when one or more of a method's arguments do not fall
C# Programming
ArgumentException is an existing class that derives from Exception; you use it when one or more of a method's arguments do not fall within an expected range. Create an application for Merrydale Mortgage Company named MortgageApplication containing variables that can hold an applicant's name and credit score. Within the class, create a method that accepts a parameter for the credit score and returns true or false, indicating whether the applicant is eligible for a mortgage. If the score is not between 300 and 850, it is invalid, and the method should throw an ArgumentException. An application is accepted when the credit score is valid and at least 650. In the Main() method, continuously prompt the user for applicant data, pass it to the method, and then display a message indicating whether the applicant is accepted, rejected, or has an invalid score.

Note: The Would you like to check the credit score of a mortgage applicant prompt only accepts the characters y or n. **CSCC Mortgage Company ould you like to check the credit score of a mortgage applicant [y]? 000 ould you like to check the credit score of a mortgage applicant [y]? y Enter the applicant's name: Peter Enter the credit score (integer value): 380 Peter credit score is not accepted. ould you like to check the credit score of a mortgage applicant [y]? y Enter the applicant's name: Peter Enter the credit score (integer value) 350 eter credit score is not accepted. ould you like to check the credit score of a mortgage applicant [y]? y Enter the applicant's name: Peter Enter the credit score (integer value): 658 Peter credit score is accepted ould you like to check the credit score of a mortgage applicant [y]? y Enter the applicant's name: Peter Enter the credit score (integer value): 850 Peter credit score is accepted. ould you like to check the credit score of a mortgage applicant [y]? y Enter the applicant's name: Peter Enter the credit score (integer value): 980 Peter credit score is not in the range 38e to 85e ould you like to check the credit score of a mortgage applicant [y]?n Press the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
