Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a C# program assignment Continue with Assignment Loan Program. Read code SquareRootTest. 1. class Program { public static double loanAmount; public static double

This is a C# program assignment

Continue with Assignment "Loan Program". Read code "SquareRootTest". 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.");

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Which of the following is true about"brand image?"

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago