Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

BundleMovies, Company has partnered with many of the world's leading producers of premium entertainment content. They developed a platform to entice customers to purchase a

BundleMovies, Company has partnered with many of the world's leading producers of
premium entertainment content. They developed a platform to entice customers to purchase a
bundle of movies. They also created a membership program that gives a discount on any movie
purchased. Write a program that accepts information from the user (customer), calculates the
price of the movies sold, and displays a receipt of this information to the customer (assume the
sales tax rate is 7.75%). The price of every movie is $19.95.
Membership program: Customers may enroll in the membership program for free. Customers
who enroll are considered Premium customers and receive a 15% discount. Customers who
dont enroll are considered Choice customers and dont receive a discount.
Bundle Purchase: Customers will receive a free movie when they purchase 4 or more movies
for every transaction. Maximum of 1 free movie per transaction. If the customer selects 4 or
more movies, a free movie is automatically added.
Structure:
Using Java Swing Library (JOptionPane), customer is prompted to join the membership
program in the beginning of every transaction. For simplification, it will be assumed that
the customer is visiting the platform for the first time.
o ConfirmDialog
o title is BundleMovies Program
o message is Would you like to be a Premium member!
o YES_NO_OPTION
Using Console Prompt, customer is prompted with how many movies they want to
purchase. Customer enters the count in console.
If the customer selects 4 or more movies, a JOptionPane is displayed with
o MessageDialog
o title is BundleMovies Program
o message is Congratulations, you received a free movie!
o OK Button -Type: INFORMATION_MESSAGE
Finally, a receipt is shown with the below information:
o Customer Membership: is Premium or Choice
o Free movie added with 4 or more purchased: true or false result of a boolean
o Total number of movies (Recommend two variables before and after free
movie).
o Price of movies (without discount)
o Tax amount (Taxes are applied towards free movie)
o Final Purchase Price (Tax Amount + Total Price Discount Amount)
o Discount amount (applied only to none-free movies)
If Premium: As a Premium member you saved: $XX.XX
If Choice: A Premium member could have saved: $XX.XX
Scenarios:
A. Scenario A:
a. Customer declines membership
b. Selects 3 movies, no discount applied
B. Scenario B:
a. Customer declines membership
b. Selects 5 movies (gets a free movie, total now is 6), no discount applied
C. Scenario C:
a. Customer accepts membership
b. Selects 8 movies (gets a free movie, total now is 9), discount applied on the 8
movies
D. Scenario D:
a. Customer accepts membership
b. Selects 2 movies, discount applied on the 2 movies
Swing Sample:
Prompt for membership
o
Display a free movie message
o

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

More Books

Students also viewed these Databases questions