SCENARIO
SCENARIO
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.
Accept the dollar value of each item purchased from the user until the user is finished.
When purchases are complete, enter a sentinel value of -1 (Make certain you do not include the -1 sentinel value in your total).
Keep track of the total dollar amount of all fireworks purchased.
Keep a tally of the number of items purchased.
If more than 20 items were purchased, give your customer a 10% discount on the total purchases.
Once purchases are complete, display the total number of items purchased, the average price of the items, the total of all fireworks purchased, any discount if applicable, and the total of all fireworks purchased minus the discount.
Be sure to THINK about the logic and design first (IPO chart and/or pseudocode), then code the Visual Logic command line processing.
Deliverables
IPO Chart
Pseudocode
Flowchart
Output screenshots
You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | topic title | discipline | academic level | pages | delivered |
---|---|---|---|---|---|
6
|
Writer's choice
|
Business
|
University
|
2
|
1 hour 32 min
|
7
|
Wise Approach to
|
Philosophy
|
College
|
2
|
2 hours 19 min
|
8
|
1980's and 1990
|
History
|
College
|
3
|
2 hours 20 min
|
9
|
pick the best topic
|
Finance
|
School
|
2
|
2 hours 27 min
|
10
|
finance for leisure
|
Finance
|
University
|
12
|
2 hours 36 min
|