#include #include using namespace std; int main() { float principal{0}, interest{0}, rate{0}, time{0}, payment{0}; cout << fixed << setprecision(2); cout << "Enter the principal: "; cin >> principal; cout << endl; cout << "Enter the interest rate: "; cin >> rate; cout << endl; cout << "Enter the time: "; cin >> time; cout << endl; interest = principal * rate * time; payment = interest + principal; cout << "Principal: $" << principal << endl; cout << "Rate: " << rate*100 << "%" << endl; cout << "Time: " << time << " years" << endl; cout << "Interest: $" << interest << endl; cout << "Payment: $" << payment << endl; return 0; }