Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Eric Redmond ,Jim Wilson

1st Edition

1934356921, 978-1934356920

More Books

Students also viewed these Databases questions

Question

how to find the Net Increase (Decrease) using the direct method

Answered: 1 week ago

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago