Question: 1 . Write a C program that takes in an integer that holds a person's age, and outputs a movie ticket price. Movie prices are

1. Write a C program that takes in an integer that holds a person's age, and outputs a movie ticket price.
Movie prices are free for everyone under the age of 4. Ticket prices are $12 for ages 4-16, $15
for ages 17-54, and $13 for ages 55 and above.
Ex: If the input is: 5; the output is: $12
If the input is: 18; the output is: $15
If the input is: 3; the output is: free
Start writing your code here...
2. Write a C Program using "for" loop that repeatedly reads in integers until a negative integer is read. The program also keeps track of the largest integer that has been read so far and outputs the largest integer at the end. Assume a tier will enter at least one non zero integer

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 Programming Questions!