Question: Code this problem in python An automobile part supplier decides to give discounts to this week's customers to help improve customer relations. Write a program

 Code this problem in python An automobile part supplier decides to

Code this problem in python An automobile part supplier decides to give discounts to this week's customers to help improve customer relations. Write a program to calculate a customer's discount. The discount is based on the value of the customer's order (the invoice amount) and the customer code, which is a single character. If the customer code is $A$, the discount rate is $5 \%$. If the customer code is $\mathrm{B}$, the discount rate is $8 \%$. Finally, if the customer code is $\mathrm{C}$, the discount rate is $12 %$. A customer code other than $A, a, b, b, C$, or $c$ is invalid. The discount amount is the amount multiplied by the discount rate. The net invoice amount is the amount minus the discount amount. The program should display the invoice amount, the discount amount, and the net invoice amount. cs.vs. 12291

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!