Week 5 iLab� Fireworks Stand Checkout
A programming assignment for an iLab project, implementing a checkout system for a fireworks stand.
Benjamin Fisher
Contributor
4.8
43
3 days ago
Preview (3 of 8)
Sign in to access the full document!
Name:_________________
Week 5 iLab— Fireworks Stand Checkout
Develop a C# program for a fireworks stand checkout system. The program should accept item prices
from the user, apply a 10% discount to items priced at $50 or more, and display the original and
discounted prices for each item. Additionally, calculate and display the total price and total discount
after all purchases.
Provide a variable list, IPO chart, flowchart, and the full working C# code. The code should be
documented with comments, and the response should be between 500 and 700 words.
Week 5 iLab— Fireworks Stand Checkout
Develop a C# program for a fireworks stand checkout system. The program should accept item prices
from the user, apply a 10% discount to items priced at $50 or more, and display the original and
discounted prices for each item. Additionally, calculate and display the total price and total discount
after all purchases.
Provide a variable list, IPO chart, flowchart, and the full working C# code. The code should be
documented with comments, and the response should be between 500 and 700 words.
TCO 5—Given a simple problem that requires iteration, create a solution algorithm that employs
loops.
TCO 8—Given a more complex problem, develop a complete solution that includes a comprehensive
statement of the problem, complete program design, and program documentation.
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 (indicating that the user has
finished).
If the item purchased is $50.00 or more, give your customer a 10% discount on the item
purchased.
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, pseudocode, and flowchart), then
code the C# program.
loops.
TCO 8—Given a more complex problem, develop a complete solution that includes a comprehensive
statement of the problem, complete program design, and program documentation.
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 (indicating that the user has
finished).
If the item purchased is $50.00 or more, give your customer a 10% discount on the item
purchased.
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, pseudocode, and flowchart), then
code the C# program.
Preview Mode
Sign in to access the full document!
100%
Study Now!
XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat
Document Details
Subject
Information Technology