Question: In a Java program: BundleMovies, Company has partnered with many of the world's leading producers of premium entertainment content. They developed a platform to entice
In a Java program:
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 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 in the console 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
