Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Java class file named PS 1 Movie. You are writing a program to calculate how much it will cost to get movie tickets

Create a Java class file named PS1Movie. You are writing a program to calculate how much it will cost to get movie tickets and popcorn for a family. The program should ask the user for the following inputs and store these responses in appropriately named variables.
Number of adults
Number of children
Number of adult popcorn combos
Number of kid popcorn combos
Here are the costs (these should be variables defined within the program, not by the user):
Tax is 11.265% on popcorn only (there is no sales tax on movie tickets). Your program should ask for the inputs, calculate the costs, then display a "receipt" that would look like the following. All values should be formatted appropriately.
image text in transcribed

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

Step: 3

blur-text-image

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions