Question: Create a Loan Program in C# 1. class Program { public static double loanAmount; public static double years; public static double interest; static void Main(string[]

Create a "Loan Program" in C# 1. class Program { public static double loanAmount; public static double years; public static double interest; static void Main(string[] args) { ..... //for loanAmount do { }while ( continueLoop ); ..... //for years do { }while ( continueLoop ); ..... //for interest do { }while ( continueLoop ); } ..... } 2. Create a class "MyRangeException.cs". 3. Add Exception Handling - loanAmount - must be a number, threw FormatException if not - must be greater than 50000, throw Exception if not - Create a method CheckLoanAmount(double la) throw new MyRangeException("Loan Amount must be $50,000 or more."); - loanInterest - must be a number, threw FormatException if not - must be greater than 1%, throw Exception if not - Create a method CheckLoanInterest(double it) throw new MyRangeException("Interest Rate must be 1% or more."); - years - must be a number, threw FormatException if not - must be greater than 5, throgh Exception if not - Create a method CheckLoanYears(double yr) throw new MyRangeException("Years must be 5 years or more.");

Output

Create a "Loan Program" in C# 1. class Program { public staticdouble loanAmount; public static double years; public static double interest; static void

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a Loan Program in C follow these steps Step 1 Create the MyRangeException Class First define a custom exception class called MyRangeExceptio... View full answer

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