Appendix F
Application-Level Requirements
Application-Level Requirements List
1. The program shall be a basic checkout calculator
2. The program will display a series of screens prompting the user to enter the item name or number, price and quantity.
3. The program will ask to enter any additional items.
4. The program will award a 10% discount if more than four items are purchased of one kind.
5. The program will calculate and display a final tax based on a 7.5% sales tax.
6. The program will calculate and display a subtotal.
7. The program will calculate and display a final total for the items that are purchased.
Input-Process-Output Chart
Complete the following input-process-output chart for the application using a structured programming approach.
Input | Process | Output | ResponseItemNameOrNumberItemQuantityItemPrice | Get User Input | ItemTotalSubtotalItemQuantityItemPrice | ItemQuantityItemPrice | Calculate Discount Price | Subtotal | Subtotal | Calculate Sales Tax | SubtotalFinalTax | SubtotalFinalTax | Calculate Totals | FinalTaxSubtotalFinalTotal | FinalTaxSubtotalFinalTotal | Display Total | FinalTaxSubtotalFinalTotal |
Hierarchy Chart
Complete a hierarchy chart for the application by typing into the textboxes below.
Main Module
User Input Module
Calculate Sales Tax Module
Calculate Discount Price Module
Display Total Price Module
Calculate Sales Total Module
Main module Declare ItemNameOrNumber as String Declare Response as String
Declare ItemQuantity as Integer
Declare ItemPrice as Real Declare ItemTotal as Real Declare Subtotal as Real Declare FinalTax as Real Declare FinalTotal as Real Write “Basic Checkout Calculator”
Write “This program computes sales tax and displays the subtotal.” Write “and final total.”
Call Get Input Module Call Calculate Sales Total Module
Call Display Total Price Module End