This program should be an interactive program.C++ only You program should do the
ID: 3664545 • Letter: T
Question
This program should be an interactive program.C++ only You program should do the following: Display a Welcome title for the Loan Calculator Prompt the user to enter the price of the car Prompt the user to enter the length of the term in months Prompt the user to enter the APR in percentage (e.g. 4.79%) - without the percent sign of course Your program should then report with the monthly payment will be. Use setw() and setfill() to display the content like a receipt. All the data should be neatly displayed. Example For a Friend Loan Calculator Price of Vehicle: $25,000 Term of Loan (in months): 60 APR in percentage (e.g. 4.79% - without the percent sign): 3.8 -------------------------------------------------------------- Total Monthly Payments: $433.50 //NOT ACCURATE Display all money totals (output values) to two decimal places. You should output an accurate result as well. For extra credit you may factor in a state auto sales tax of 6.5% of the purchase price of the vehicle and how much of a down payment the user would like to put down. Of course, if you are factor down payment, you must prompt the user to enter that amount.
Explanation / Answer
Answer:
#include <iostream>
using namespace std;
int main() {
// your code goes here
// car price here
int carPrice;
//how many terms
int carTerms;
// car percentage here
int carAPRpercentage;
// total amount every month you pay
int totalmonthPayment;
int calculatedAmount;
cout<<"*******************************************"<<endl;
cout<<"Loan Calculator Prompt"<<endl;
cout<<"********************************************<<endl;
cout<<"Enter the Price of Car"<<endl;
cin>>carPrice;
cout<<"Enter how many terms you have"<<endl;
cin>>carTerms;
cout<<"Enter APR percentage"<<endl;
cin>>carAPRpercentage;
cout<<"Enter monthly how much amount you pay to car Loan"<<endl;
cin>>totalmonthPayment;
std::cout<<The Reciept of Car Loan Details to Car Owner<<std::endl;
cout<<"*********The Car Details Reciept********************"<<endl;
cout<<"***********"<<carPrice<<********************"<<endl;
cout<<"***********"<<carTerms <<********************"<<endl;
cout<<"***********"<<carAPRpercentage<<********************"<<endl;
cout<<"***********"<<totalmonthPayment<<********************"<<endl;
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.