Write a program using a Loop structure that takes 5 inputs of sales for item 1 – item 5 from the user during runtime. The program use Running -Total to calculate the sales. The program applies 7% SalesTax The program gives a discount of 5% if the total sales are greater than $6000 The program gives a discount of 6% if the total sales are greater than $7000 The program validates the input as numbers only (Must Enter a Number) Provide different outputs to cover (1-6) The 5 items entered for sales calculations The subtotal of sales without taxes The total sales with taxes The final total of no discount < $6000 The final total of discount if sales > $6000 The final total of discount if sales > $7000

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 5E: (Mathematical functions) Write a program that calculates and displays values for y when y=xz/(xz)...
icon
Related questions
Question

PYTHON (Do not use functions)

  1. Write a program using a Loop structure that takes 5 inputs of sales for item 1 – item 5 from the user during runtime. The program use Running -Total to calculate the sales.

    • The program applies 7% SalesTax

    • The program gives a discount of 5% if the total sales are greater than $6000

    • The program gives a discount of 6% if the total sales are greater than $7000

    • The program validates the input as numbers only (Must Enter a Number)

      Provide different outputs to cover (1-6)

      1. The 5 items entered for sales calculations

      2. The subtotal of sales without taxes

      3. The total sales with taxes

      4. The final total of no discount < $6000

      5. The final total of discount if sales > $6000

      6. The final total of discount if sales > $7000

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage