Question: How would I be able to create this program with only using while loops? I have not yet learned for loops or arraylists so i
How would I be able to create this program with only using while loops?
I have not yet learned for loops or arraylists so i would not be able to understand.


Within the 1900 folder on your desktop, create a new folder named Lab4HWLastnaneFirstnane. (9 pts) Problem 1 Suppose you run a movie theater that uses the following pricing scheme for tickets: Matinee ! Evening (500 pm or after, (before 5:00 pm) including midnight showings) Child (10 or younger) Senior (65 or older) Free $6.50 $11.50 $5.50 $9.50 Within your Lab4HW folder, write a program named MovieTickets.java that computes the price of a ticket order. Start by allowing the user to enter his/her desired showtime. The time should be entered in 24-hour format as a single integer; for example, 1615 is 4:15 pm, 1130 is 11:30 am, 1900 is 7:00 pm, and 0 is midnight. Midnight is the latest showtime offered by the theater. The program should then prompt the user to enter the ages of all members in his/her party. The user should be able to enter as many party members as desired. Once all the ages have been entered, the program should report the number of regular, child, and senior tickets sold, along with the subtotals for each of those categories. Finally, the program should show the grand total at the end. Movie theaters generally include sales tax in their ticket prices, so don't worry about adding tax separately Here's an example of what your completed program might look like when you run it. Underlined parts indicate what you type in as the program is running. What's your desired showtime? 1700 Enter age of party member 1 (any negative value to exit): 12 Enter age of party member 2 (any negative value to exit):8 Enter age of party member 3 (any negative value to exit): 36 Enter age of party member 4 (any negative value to exit): 70 Enter age of party member 5 (any negative value to exit): 41 Enter age of party member 6 (any negative value to exit): Evening prices Regular: Child: Senior 1 3 at $11.50 each $34.50 1 at $5.50 each at $9.50 each $%9.50 $5.50 TOTAL $49.50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
