Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

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.

Be sure to think about the logic and design first (IPO chart, pseudocode, and flowchart), then code the C# program.

List all variables you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on.

List the inputs, any processes/calculations, and outputs. Use the same valid variable names you used in Step 1.

Use MS Visio to create a flowchart. Paste the flowchart here, or attach it as a separate document. Use the same valid variable names you used in Step 1.

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions