(3 pts) Suppose that the Loan class is given as shown in the following UML. Write a test program that creates a Loan object with loan amount $40000, annual interest rate 5.5%, and number of years 15, and displays the monthly payment and total payment.
```
#include
#include "Loan.h"
using namespace std;
int main()
{
Loan loan(5.5, 15, 40000);
cout << "Monthly payment: " << loan.getMonthlyPayment() << endl;
cout << "Total payment: " << loan.getTotalPayment() << endl;
return 0;
}
```
Computer Science & Information Technology
You might also like to view...
The Microsoft Office program, ________, allows the user to manage e-mail and organizational activities
A) PowerPoint B) OneNote C) Outlook D) Publisher
Computer Science & Information Technology
White space is white and void of content
Indicate whether the statement is true or false.
Computer Science & Information Technology