Objectives: Use an Input, Processing and Output (IPO) chart to create a flowgorithm program meeting customer requirements Use the sequential structure within the main() function/module to meet customer requirements. Use named constants as provided input instead of magic numbers Use comments to document test cases Lab Task Checklist
Objectives:
- Use an Input, Processing and Output (IPO) chart to create a flowgorithm program meeting customer requirements
- Use the sequential structure within the main() function/module to meet customer requirements.
- Use named constants as provided input instead of magic numbers
- Use comments to document test cases
Lab Task Checklist
- It is expected you have read the required reading in this Lesson before starting the lab.
- Review Course Resources/Flowgorithm Guidance/Menu Guidance
- Create the Flowgorithm program to meet customer requirements
- Ensure you have test cases reflected in the comments
- File naming Convention: “lastname-asgn-sequential.fprg”. **where lastname is YOUR lastname and the filename uses only small letters…no capitals.
- Submit all required lab files to BlackBoard
Instructions:
- Review the customer requirements.
- Customer Requirements:
The customer needs to determine the monthly checking account fee charged by Wake Tech Financial. The fee is based on the users account balance and how many overdrafts they had. · There is a minimum fee of 1 percent (0.01) of their account balance. · In addition, there is a $2.00 charge for each time the account was overdrawn. · The program should display the fee and a personal message (i.e., not just the fee). · Display a message for end of program and programmer credits · Declare the minimum fee and overdraft penalty as named constants. · Use named constants in your calculations
|
- Review the example IPO “Additional Lab Materials” below.
- Open Flowgorithm and save the file with the required naming convention.
- Enter the required program attributes for your program.
- Create the
algorithm using Flowgorithm to meet the customer requirements.- Declare named constants/variables using correct naming conventions
- Make sure you are using the correct datatype
- DO NOT use magic numbers.
- Test using the IPO test cases and document the test case in your code as comments.
- Submit file/s to BlackBoard.
Additional Lab Materials:
IPO:
Input |
Processing |
Output |
User Balance User Overdrafts
Named Constants (Given): Minimum Fee = 0.01 Overdraft fee = 2
|
Get user balance, user overdrafts
Assign minimum fee and overdraft fee
Calculate total minimum fee, total overdraft fee and total fee · total minimum fee = (balance * 0.01 · total overdraft fee = overdrafts * 2 · total fee = total minimum fee + total overdraft fee
|
Welcome message
Prompt: balance Prompt: overdrafts
Result: Total fee with personal message
End of Program message
|
Storage/Memory Location The student will need to decide which names to use. Remember to follow the correct naming conventions.
|
The student will need to decide which names to use. Remember to follow the correct naming conventions
|
|
Test Data |
1. T1: Balance 100 Overdrafts: 2 Output Expected for fee: 5 2. T2: Balance 100 Overdrafts: 0 Output Expected for fee: 1 3. T3: Balance 345 Overdrafts: 2 Output Expected for fee: 7.45 4. T4: Balance 345 Overdrafts: 0 Expected output for fee:3.45 5. T5: Balance 350.90 Overdrafts: 2 Expected outputs for fee: 7.509 6. T6: Balance 350.90 Overdrafts: 0 Expected output for fee: 3.509. |
|
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images