Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Company has partnered with many of the world's leading n producers of premium entertainment content. They developed a platform to entice customers to purchase a
Company has partnered with many of the world's leading
n 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 using intelliJ 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 The price of every movie is $
Membership program: Customers may enroll in the membership program for free. Customers
who enroll are considered Premium customers and receive a 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 or more movies
for every transaction. Maximum of free movie per transaction. If the customer selects 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 YESNOOPTION
Using Console Prompt, customer is prompted with how many movies they want to
purchase. Customer enters the count in console.
If the customer selects 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: INFORMATIONMESSAGE
Finally, a receipt is shown with the below information:
o Customer Membership: is Premium or Choice
o Free movie added with 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 nonefree movies
If Premium: As a Premium member you saved: $XXXX
If Choice: A Premium member could have saved: $XXXX
Scenarios:
A Scenario A:
a Customer declines membership
b Selects movies, no discount applied
B Scenario B:
a Customer declines membership
b Selects movies gets a free movie, total now is no discount applied
C Scenario C:
a Customer accepts membership
b Selects movies gets a free movie, total now is discount applied on the
movies
D Scenario D:
a Customer accepts membership
b Selects movies, discount applied on the movies
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