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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education