Question: C++ as simple as possible. Exercise 6.1 Modify the Pla.epp program such that it: Asks users to enter two different loans this time and uses

C++ as simple as possible.

C++ as simple as possible. Exercise 6.1 Modify the Pla.epp program such

that it: Asks users to enter two different loans this time and

Exercise 6.1 Modify the Pla.epp program such that it: Asks users to enter two different loans this time and uses a function called initialize_loan to initialize each loan struct. The program should also compute and display the payment for each individual loan and the total monthly payment. 1. // P61a.cpp - This program creates uses a structure for loan, initialize it from the ke yboard, then displays the struct 2. 3. include 4. include 5. using namespace std; 6. 7. struct Loan // Loan is called structure tag 8. { 9. int ID; // assume an unique integer between 1111-9999 float amount; // $ amount of the loan 11. float rate; // annual interest rate 12. int term; // number of months, length of the loan 13. }; 14. 15. float payment(Loan 1); 10. 16. 31. 17. int main() 18. 19. Loan loanl; 2e. float monthly payment; 21. 22 // Initialize the loani structure 23. cout > loani. ID; 25. 26. cout > loani. amount; 28. 29. cout > loani.rate; 32 cout > loani. term; 34 35. monthly payment = payment(loan); 36. 37. cout

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!