In python please

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
In python please
A company is selling three types of products namely A, B and C to
three different types of customers viz. Direct Customer, Dealers and
Retailers. To promote the sales, the company is offering discounts.
Write a python program to accept customer id, customer name,
customer type and bill amount of n customers.
The program should define and call a programmer defined function
with customer type and bill amount as parameters and return the
final bill amount after calculating discount using following table:
Customer Type
Discount
Direct Customer
5% of bill amount
Dealer
10% of bill amount
Retailer
8% of bill amount
The program should calculate the total bill amount (bill amount
discount) and store customer id, customer name and total bill amount
in lists.
The program should display customer id, customer name and total
bill amount in form of a table. The total bill amount must be displayed
in OMR.
Note: Use f-string and escape sequence characters wherever possible.
Transcribed Image Text:A company is selling three types of products namely A, B and C to three different types of customers viz. Direct Customer, Dealers and Retailers. To promote the sales, the company is offering discounts. Write a python program to accept customer id, customer name, customer type and bill amount of n customers. The program should define and call a programmer defined function with customer type and bill amount as parameters and return the final bill amount after calculating discount using following table: Customer Type Discount Direct Customer 5% of bill amount Dealer 10% of bill amount Retailer 8% of bill amount The program should calculate the total bill amount (bill amount discount) and store customer id, customer name and total bill amount in lists. The program should display customer id, customer name and total bill amount in form of a table. The total bill amount must be displayed in OMR. Note: Use f-string and escape sequence characters wherever possible.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY