hey I am new in C++ and I have finished my code but my Prof. asked me to write pseudocode and I have no idea what that is and I dont know how to write it. Can somebody give me some example how to write pseudocde from this code.
//This program will calculate the monthly payment on a loan.
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
double payment, rate, n, l;
cout << "Please enter your interest rate: ";
cin >> rate;
rate /= 12; // or rate = rate / 12;
cout << "Please enter the number of payments: ";
cin >> n;
cout << "Please enter the amount of the loan: ";
cin >> l;
payment = rate * pow(1 + rate, n) / (pow(1 + rate, n) - 1) * l;
cout << "Loan Amount: $"<< l << endl;
cout << "Monthly Interest Rate: "<< rate << "%" << endl;
cout << "Number of Payments: "<< n << endl;
cout << "Monthly Payment: $"<< payment << endl;
cout << "Amount Paid Back: $"<< n * payment << endl;
cout << "Interest Paid: $"<< n * payment - l << endl;
return 0;
}
Thanks