discount_.py Al Shams supermarket is a largest shopping center in Oman for electronic items and home appliance. They want to create invoice for their customer after they supplying the goods. Write a Python program to ask the user to input the purchase amount, customer type (O: Online or 'F: Offline) for 10 customers and do the following for each customer using loop. Calculate and display the discount for each customer according to the following table. Customer Purchase Amount Discount Турes Online 5% of Purchase Amount 10% of Purchase Amount 15% of Purchase Amount 5% of Purchase Amount 10% of Purchase Amaount Calculate and display the total amount for each customer according to the following formula Purchase Amount < 100 Customer 100 s Purchase Amount < 200 Offline Customer 200 S Purchase Amount Purchase Amount < 100 Purchase Amount >= 100 a)Calculate and display the sales tax for each customer based on the criteria given in the below table. Total Amount Total Amount < 150 150 s Total Amount <400 400 s Total Amount Sales Tax 1% of Total Amount 2% of Total Amount 3% of Total Amount b) Calculate and display the net purchase amount for each customer according to the following formula Net Purchase amount- Total Amount + Sales Tax c) Calculate and display average net purchase amount of online customers.
discount_.py Al Shams supermarket is a largest shopping center in Oman for electronic items and home appliance. They want to create invoice for their customer after they supplying the goods. Write a Python program to ask the user to input the purchase amount, customer type (O: Online or 'F: Offline) for 10 customers and do the following for each customer using loop. Calculate and display the discount for each customer according to the following table. Customer Purchase Amount Discount Турes Online 5% of Purchase Amount 10% of Purchase Amount 15% of Purchase Amount 5% of Purchase Amount 10% of Purchase Amaount Calculate and display the total amount for each customer according to the following formula Purchase Amount < 100 Customer 100 s Purchase Amount < 200 Offline Customer 200 S Purchase Amount Purchase Amount < 100 Purchase Amount >= 100 a)Calculate and display the sales tax for each customer based on the criteria given in the below table. Total Amount Total Amount < 150 150 s Total Amount <400 400 s Total Amount Sales Tax 1% of Total Amount 2% of Total Amount 3% of Total Amount b) Calculate and display the net purchase amount for each customer according to the following formula Net Purchase amount- Total Amount + Sales Tax c) Calculate and display average net purchase amount of online customers.
Chapter5: Looping
Section: Chapter Questions
Problem 14E: In Chapter 4, you created a program that generates a random number, allows a user to guess it, and...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 5 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT