CIS115 Week 1 iLab 1
A. Lab #: CIS CIS115-A1
B. Lab 1 of 1 :
Fireworks Stand Checkout
C. Lab Overview – Scenario / Summary:
Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions.
Given a simple business program that requires iteration, create a solution algorithm that employs loops.
Given a program with logic errors that is intended as a solution to a simple business problem, employ debugging diagnostics to remove and correct the errors.
Your algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a FOR loop on this lab is not allowed. Let’s keep the rules simple.
1) Accept the dollar value of each item purchased from the user until the user is finished.
2) When purchases are complete, enter a sentinel value of -1 (indicating the user has finished).
3) If more the item purchased is 50.00 or more, give your customer a 10% discount on their item purchased.
4) Display all of the purchases to the customer with the original price and the discount price.
Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing.
Fireworks IPO Model
No reviews. Be the first to write one!