Question: Write a Java program that simulates a rollercoaster ride ticketing system. The program should: Ask the user for their height in centimeters. ( If statement
Write a Java program that simulates a rollercoaster ride ticketing system. The program should:
Ask the user for their height in centimeters. If statement
If the user is cm or taller, they can ride the rollercoaster. The program should then ask for their age and determine the ticket price based on the following conditions:
Under : $if statementBetween and : $else if statement to : Free ticket else if statement and above: $ else
Ask the user if they want a photo taken, which adds $ to the total bill.
use this for this portion: char character input.charAt;
Display the total bill at the end.
If the user is shorter than cm display a message saying they cannot ride the rollercoaster.
If you all have any questions, please let me know. Please do not try to use AIIt will notify me and I will have to give you a grade of
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
