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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
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...
icon
Related questions
Question
discount_<studentid>.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
Purchase Amount < 100
100 s Purchase Amount < 200
200 s Purchase Amount
Purchase Amount < 100
Purchase Amount >= 100
Calculate and display the total amount for each customer according to the following formula
5% of Purchase Amount
10% of Purchase Amount
15% of Purchase Amount
5% of Purchase Amount
10% of Purchase Amount
Online
Customer
Offline
Customer
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.
Transcribed Image Text:discount_<studentid>.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 Purchase Amount < 100 100 s Purchase Amount < 200 200 s Purchase Amount Purchase Amount < 100 Purchase Amount >= 100 Calculate and display the total amount for each customer according to the following formula 5% of Purchase Amount 10% of Purchase Amount 15% of Purchase Amount 5% of Purchase Amount 10% of Purchase Amount Online Customer Offline Customer 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.
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Function Arguments
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT