Pseudocode for Project 1, including input validation:
Input principal using prompt "Enter amount of loan: ",
assign to variable p.
If p is less than 0,
print error message,
exit program.
End
Input interest rate using prompt "Interest rate in percent: ",
assign to variable r.
If r is less than 0,
print error message,
exit program.
End
Input term using prompt "Number of years: ",
assign to variable n.
If n is less than 0,
print error message,
exit program.
End
Compute monthly payment using formula, assign to variable m.
Output monthly payment m.