Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c# Your algorithm will keep track of a customers purchases at the local fireworks stand. Customers will not know exactly how many items they

in c# Your algorithm will keep track of a customers 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. Lets 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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago