Question: Create the definition for a loan object. The object will contain methods to set and get the loan amount. a yearly interest rate, number of

Create the definition for a loan object. The object will contain methods to "set" and "get" the loan amount. a yearly interest rate, number of years and the number of payments per year. It will also contain a method that returns the payment amount (Note payments per year is "normally" 12 and in that case the payment amount would indicate the monthly payment). Include if statements in the object, so that "bad" values can not get into the object.

Write a C# program to create and test a loan object. Add if statements to your program to prevent bad values being sent to a loan object. Please include all code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!