//File name is simpleinterest.cpp //Author: Carol Conway 2/2/17 //Program computes simple interest on a loan //This program illustrates the use of setprecision together with fixed and showpoint //It also illustrates the use of setw() and getline #include #include #include using namespace std; int main() { string name; double ratePercent; //RATE AS A PERCENTAGE double principal; //amount of loan double years; //term of the loan double interest; //interest earned over life of the loan cout << "What is the name of the borrower "; getline(cin, name); cout << "How much are you borrowing? "; cin >> principal; cout << "At what percentage interest rate? "; cin >> ratePercent; cout << "For how many years? (fraction OK) "; cin >> years; cin.get(); //pause the screen interest = principal * ratePercent/100 * years; cout << "\n\n\nHello " << name << " Here is your loan cost \n"; cout << setw(15) <