Question: Keith s Sheet Music needs a program to implement its music teacher s dis - count policy. The program is to prompt the user to
Keiths Sheet Music needs a program to implement its music teachers dis
count 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 format
ted file called receipt.txt Music teachers receive a discount on their
sheet music purchases unless the purchase total is $ or higher. In that
case, the discount is The discount calculation occurs before addition of
the sales tax. Here are two sample output filesone for a teacher and one
for a nonteacher.
Total purchases $
Teacher's discount
Discounted total
Sales tax
Total $
Total purchases $
Sales tax
Total $
Note: to display a sign, place two signs in the format string:
printfd SALESTAX;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
