Hi all,
Thank you for the help. I am confused on how to get this program
rolling.
***************************************
HERES THE PROJECT ASSIGNMENT:
Keith's Sheet Music needs a program to implement its music teacher's
discount polcy. 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 file called receipt.txt.
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
5% sales tax. Here are two sample output files--one for a teacher and
one for a nonteacher.
Total purchases $122.00
Teacher's discount (12%) 14.64
Discounted total 107.36
Sales tax (5%) 5.37
Total $112.73
Total purchases $24.90
Sales tax (5%) 1.25
Total $26.15
*****************************************************
Heres what i got so far, im sure i am wrong:
#include <stdio.h>
main(void)
float purchasetotal, teacher, nonteach, salestx
printf("Enter The Total Of Purchase")"
Printf("Is The Purchaser A Teacher")"
if (teacher <=100 * .10 + .5)
if(teacher >=100 * .12) + .5)
else
(nonteach + .5)
Any help would be very appreciated.
DB