UMBC | CMSC104 |
Each month, you must calculate the interest and subtract the payment:
It would be better if you converted the annual rate in to a monthly rate immediately after you have a valid rate:
Name the source code file: proj2.c
The subject of the email should be "CMSC104 Project 2". This must be an exact match for the TA to be able to filter the mail and put your work in the correct folder!
Enter the balance: 10000.00
Enter the interest rate as a percentage (18% as 18): 18 Enter the monthly payment: 235.73 It will take 5 years and 8 months to pay off the balance. You will pay $6014.84 in interest.
Enter the balance: 3976.93
Enter the interest rate as a percentage (18% as 18): 17 Enter the monthly payment: 100.00 It will take 4 years and 11 months to pay off the balance. You will pay $1914.35 in interest.
/* ** Filename: proj2.c ** Name: Ima Student ** SSAN: 6789 ** Date: 3 Feb 2001 ** Course: CMSC-104 Section XXX ** Description: (Your psuedocode goes here. Must be detailed) ** Analysis: ** Input: ** Output: ** Formulas: ** Constraints: ** Assumptions: ** Design: (Psuedocode is here) ** Notes: (As needed, such has how to compile) */
Remember, when designing your psuedocode, try to write it like you were
explaining it to your 10-year old brother or sister. There is several things
here that are similiar to the notes in Lecture 11!
UMBC CMSC104 | CSEE | CMSC104 | |