Could anyone please solve this problem because I have no idea howto do it the pr
ID: 3614250 • Letter: C
Question
Could anyone please solve this problem because I have no idea howto do itthe problem is
A music store needs a program to implement its music teacher'sdiscount policy. The program in file music.c is to promptthe user to enter the purchase total and to indicate whether thepurchaser is a teacher. The store plans to give each customer aprinted receipt, so your program is to create a nicely formattedfile called receipt.txt. Music teachers receive a 10%discount on their sheet music purchases unless the purchase totalis $100 or higher. in that case, the discount is 12%. The discountcalculation occurs before addition of the 7% sales tax. Yourprogram should use functions to display instructions to the userand to compute the discount, if any. Here is a sample output, for ateacher. Total purchases $122.00 Teacher's discount (12%) 14.64 Discounted total 107.36 Sales tax (7%) 7.52 Total 114.88
Here is a sample output, for a nonteacher. Total purchases $24.90 Sales tax (7%) 1.74 Total 26.64
Total purchases $122.00 Teacher's discount (12%) 14.64 Discounted total 107.36 Sales tax (7%) 7.52 Total 114.88