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
Step: 1
Get Instant Access with AI-Powered 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