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

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

 

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:

  1. Review the customer requirements.
    1. 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

 

 

  1. Review the example IPO “Additional Lab Materials” below.
  2. Open Flowgorithm and save the file with the required naming convention.
  3. Enter the required program attributes for your program.
  4. Create the algorithm using Flowgorithm to meet the customer requirements.
    1. Declare named constants/variables using correct naming conventions
    2. Make sure you are using the correct datatype
    3. DO NOT use magic numbers.
    4. Test using the IPO test cases and document the test case in your code as comments.
  5. 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.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Flowchart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage