Question
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
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 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 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started