Question: HELP! IN JAVA PLEASE! Write a program that takes in a string that hoids the values day or night' and an integer that holds a

HELP! IN JAVA PLEASE!  HELP! IN JAVA PLEASE! Write a program that takes in a
string that hoids the values "day" or "night' and an integer that
holds a person's age, and outputs a movie ticket price. Movie prices

Write a program that takes in a string that hoids the values "day" or "night' and 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 . Daytime prices are $8 for everyone age 4 or higher. Nighttime prices are $12 for ages 416,$15 for ages 1754 and $13 for ages 55 and above. Ex: If the input is: night 50 the output is: $15 Ex. If the input is: day 15 the output is: $8 night 3 the output is: free Output is nearly correct, but whitespace differs. See highlights below. Special character legend Input Your output Expected output 5.Compare output Output is nearly correct, but whitespace differs. See highlights below. Special character legend Input Your output Expected output 6:Compare output Output is nearly correct, but whitespace differs. See highlights below. Input Your output Expected output 3. Compare output 0/1 Output differs. See highlights below. Input Your output Enter the time of day (dayight): Enter the age of the person: The ti. Expected output 4.Compare output ^ 0/1 Output differs. See highlights below. Input Your output Enter the time of day (dayight): Enter the age of the person: The tif Expected output 5.Compare output 0/2 Output differs. See highlights below. Input Your output Enter the time of day (dayight): Enter the age of the person: The til

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!