Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use beginner java coding (9 pts) Problem 1 run a movie theater that uses the following pricing scheme for tickets: Suppose you Matinee Evening 5:00pm

Use beginner java coding image text in transcribed
image text in transcribed
(9 pts) Problem 1 run a movie theater that uses the following pricing scheme for tickets: Suppose you Matinee Evening 5:00pm or arter (before 5:00 pm) including midnight showings) Regular Child (10 or younger) Senior (65 or older) $8.00 Free $6.50 $11.50 $5.50 $9.50 Within your Lab4HV 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): 1 Evening prices Regular: Child: Senior: 3 at $11.50 each 1 at $5.50 each 1 at $9.50 each $34.50 $5.50 $9.50 TOTAL: $49.50

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago

Question

3. Outline the four major approaches to informative speeches

Answered: 1 week ago

Question

4. Employ strategies to make your audience hungry for information

Answered: 1 week ago