![]() PretaxBill = (weekendMin - 600)*ADDITIONAL_WEEKDAY_MIN_IN_CENTS Printf("Pretax bill: $%d \nTaxes: $%d \nTotal bill: $%d", pretaxBill, taxes, totalBill) Printf("Average minute cost: $%.2f ", averageCost) Printf("Weekday minutes: %d, night minutes: %d, weekend minutes: %d \n", weekdayMin, nightMin, weekendMin) ĪverageCost = (weekdayMin weekendMin nightMin)/(FLAT_RATE_IN_CENTS) ![]() Printf("Please enter the number of weekend minutes: ") Printf("Please enter the number of weekday minutes, night minutes: ") #define ADDITIONAL_WEEKDAY_MIN_IN_CENTS 40įloat pretaxBill, taxes, totalBill, averageCost I am attempting to write a program that will take a user's input for weekday, night, and weekend minutes and will spit out the average cost per minute, pretax bill, taxes, and total bill (according to flat rate/tax rate/additional weekday minute rate values given in the problem #include
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |