Question
You are required to create a calculator to calculate ticket price to watch the Black Panther movie by using Java. Your program should be able
You are required to create a calculator to calculate ticket price to watch the Black Panther movie by using Java. Your program should be able to do the followings: 1. Ask user to enter name. 2. Ask user to enter number of tickets to buy based on the following categories (set the price as below): - Adult (USD22.00) - Children (USD16.00) - Senior Citizen (USD9.00) 3. Perform multiplication and calculation of the ticket price to be paid. 4. Show the total answer for the price based on the number of tickets bought. Your output should something like this (but not exactly like this): Hi! Welcome to Black Panther movie. Please enter your name: Hello (name)! To buy your movie ticket, please enter the number of pax: Adult (USD22.00): (first number) Children (USD16.00): (second number) Senior Citizen (USD9.00): (third number) Thank you. Please find the summary as below: Number of adult: (first number) adults Total price for adult: USDxx.xx (first number x 22.00) Number of children: (second number) children Total price for children: USDxx.xx (second number x 16.00) Number of senior citizens: (third number) senior citizens Total price for senior citizens: USDxx.xx (third number x 9.00) Your total number of ticket is: (total number of tickets) Your total price is: USDxx.xx Thank you for watching Black Panther! You may add more depending on your creativity.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started