Question: Write, compile, and run a C program to do the following: A theatre charges half admission price of $14.25) on Tuesdays and is free on

 Write, compile, and run a C program to do the following:

Write, compile, and run a C program to do the following: A theatre charges half admission price of $14.25) on Tuesdays and is free on Sundays. On all other days of the week, the regular admission price is $28.50 per ticket. A school is planning for multiple admissions to this theatre on different days of the week. if the total cost for all the admissions exceeds $800, a message "Total cost exceeds permitted budget" should be printed. The user of the program specifies the day of the week and the number of students. The progran is to calculate the total price of admission to the theatre as follows: total admission cost number of students admission ticket price. The day of the week is specified by a single character as follows: M' or 'n' Monday 'T' or 't' Tuesday 'W' or 'W' Wednesday 'R' or '' Thursday 'F' or '! - Friday 'S' or 's Saturday U' or 'u' = Sunday You are to complete the program so that the program produces results similar to that shown in the sample run below: NOTE: The Name, Student ID and Section that appears in the output of the program should be your own, not the ones used in the sample run. Sample run 1: Name: Smith, Peter Student ID: 380999999 Section: 001 Using the following scheme: 'M' or 'a' Monday 'T' or 't' Tuesday 'W' or 'V' = Wednesday R' or 'r' - Thursday 'F' or 'f' - Friday "S' or 's Saturday "U' or u' = Sunday Enter the day of the week: M Number of students: 17 Total cost exceeds permitted budget Press any key to continue.. PROGRAM OUTPUT Provide FOUR Sample runs and paste it to your WORD document: - For the FIRST sample run: Enter M for day of the week and 17 for the number of students. - For the SECOND sample run: Enter t for day of the week and 58 for the number of students. - For the THIRD sample run: Enter U for day of the week and 42 for the number of students. - For the FOURTH sample run: Enter w for day of the week and 25 for the number of students. -/ #include #include int main() system("pause"); return 0; 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!