Review the example IPO below. Open Flowgorithm and save with the required naming conventions in the “Lab Task Checklist” and remember to enter your Program Attributes. Use Flowgorithm to create the algorithm meeting the customer requirements Make sure you are using the correct datatype Use prompts to describe required input before asking for input Test using the IPO test cases and document the test case in your code as comments. Display a welcoming message and a purpose statement Display an End of job message and your name Processing will require: A counter for month An accumulator for balance *hint: initialize with the loan amount Logic to ensure the last month reflects a 0 balance and not a negative number (see month 11 example in render). A message with the Original Loan Amount before end of program.
- Review the customer requirements
Customer Requirements: The customer needs an application that creates a report telling how many months it will take to pay of a loan given a loan payment. The application will accept a client’s loan amount and monthly payment amount. It will then output the customer’s loan balance each month until the loan is paid off. The report should not have any negative numbers (the final month should reflect a balance of $0). Display the month and remaining balance for each month until paid off. In addition, the program should display what the original loan amount was.
|
- Review the example IPO below.
- Open Flowgorithm and save with the required naming conventions in the “Lab Task Checklist” and remember to enter your Program Attributes.
- Use Flowgorithm to create the
algorithm meeting the customer requirements - Make sure you are using the correct datatype
- Use prompts to describe required input before asking for input
- Test using the IPO test cases and document the test case in your code as comments.
- Display a welcoming message and a purpose statement
- Display an End of job message and your name
- Processing will require:
- A counter for month
- An accumulator for balance *hint: initialize with the loan amount
- Logic to ensure the last month reflects a 0 balance and not a negative number (see month 11 example in render).
- A message with the Original Loan Amount before end of program.
Input, Processing and Output:
Input |
Processing |
Output |
Variables:
Loan Amount Planned monthly payment
|
Get loan amount Get planned monthly payment
Assign counter Assign original loan amount Test for balance Calculate new balance Keep track of month Test for 0 balance
|
Welcome message Prompt: loan amount, and monthly payment Result: month and balance for each month Original Loan amount End of Program message |
Test Data |
T1: LA = 1001 Pymt = 100… 11 months till 0. T2: LA =2079.50 Pymt = 231.20…9 months till 0 T3: LA = 4000 Pymt 250…16 months till 0
|
|
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images