Question: MovieTickets.java Please write using java COMP 1900 Spring 2019 Lab 4 Homework Total Points: 15 As with all other labs, this should be done lodividual

MovieTickets.java

Please write using java

MovieTickets.java Please write using java COMP 1900 Spring 2019 Lab 4 HomeworkTotal Points: 15 As with all other labs, this should be done

COMP 1900 Spring 2019 Lab 4 Homework Total Points: 15 As with all other labs, this should be done lodividual Computer Science Learning Center (httpe:/uw.neaphis.adu/ca/eurrent atudanta/culc-php) if von need belp. You may also work with other students on general solution ideas, but the code you submit must be your own. Contact yoar instructor and/or visit the Due: By the beginning of your next, lab session. Grader: Your lab TA will grace your work. Questions about grading sh contact info can be found on the course syllabus sbould be directed to him/her. TA Coding Style: Use consistent indentation in your code; include a reasnnable an throughout your code; and use standard Java conventiors for CONSTANT NAMES. Your TA may deduet points for poor ending sty reasonable anount of comments anid ClassNames, variableNames. Within the 1900 solder on your desk:op, create a new folder natmed LabdthLastnaneF (9 pts) Problem 1 Suppose you run a novie theuler that nses the following pricing scheme for tickets rening T5300 prn or ater, including midnight showings , Matinee before 5:00 pm) Regular Child (10 or younger) Senjor (65 or older $11.50 $5.50 $9.50 56.50 Within your Lab4 folder, write a progran 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 1:15 pm, 1130 is 11:30 am, 1900 is 7:00 pm, and 0 is midnight. Midnight is the latust showtime offered by the thester The program should then prompt the user to enter the ages of all members in his/her party. The use should be able to enter as many perty members as desired. Once all the ages have been entered, the child, and senior tickels sold, along with the subtotals for program should report the number of regular, each of those categories. Finaily, the program shonld showr the grand tota! at the end generally include sales tax in their ticket prices, so don': worry ahour Here's an example of what your completed program might look 'le when yon run it. Usderimed 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) s 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: 3 at $11.50 each $34.50 1 at $5.50 each $%5.50 1 at $9.50 each $9.50 TOTAL: $49.50 (6 pts) Problem 2 -hegative sentinel value to exit. You ld he if the lowest grade program should report the average of all the eut drop of grades, until entering a negatve what trades bet until entering aa program named ModifsedAverage. java that between 0-100. The program

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!