Question
Can anyone give me the code of this question in C++. Keiths Sheet Music needs a program to implement its music teachers discount policy. The
Can anyone give me the code of this question in C++. Keiths Sheet Music needs a program to implement its music teachers discount policy. The program is to prompt the user to enter the purchase total and to indicate whether the purchaser is a teacher. The store plans to give each customer a printed receipt, so your program is to create a nicely formatted printed receipt. Music teachers receive a 10% discount on their sheet music purchases unless the purchase total is $100 or higher. In that case, the discount is 12%. The discount calculation occurs before addition of the 5% sales tax. Here are two sample output printsone for a teacher and one for a nonteacher. Note: to display a % sign, place two % signs in the format string: printf("%d%%", SALES_TAX);
Teacher:
Total purchases $122.0
Teacher's discount (12%) 14.64
Discounted total 107.36
Sales tax (5%) 5.37
Total $112.73
Nonteacher
Total purchases $24.90
Sales tax (5%) 1.25
Total $26.15
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started