Question: Java//// do not copy and paste from other work because it will not match the output that I look for it. In this exercise, you

Java//// do not copy and paste from other work because it will not match the output that I look for it.

In this exercise, you will create a Java program that calculates the discount amount and final price of a video game based on the user's VIP status and the video game price. The program will use a nested if statement to determine the discount amount based on the following rules:

If the VIP status is "bronze" or "BRONZE", the discount amount is 10% if the video game price is less than $50, and 15% if the video game price is $50 or more.

If the VIP status is "silver" or "SILVER", the discount amount is 20% if the video game price is less than $25, 25% if the video game price is between $25 and $50, and 30% if the video game price is $50 or more.

If the VIP status is "gold" or "GOLD", the discount amount is 30% if the video game price is less than $10, 35% if the video game price is between $10 and $25, and 40% if the video game price is $25 or more.

The program should prompt the user for the video game price and VIP status, and then output the discount amount and final price with two decimal places.

 

Enter the video game price: 20

Enter your VIP status (bronze/silver/gold): silver

The discount amount is $4.00

The final price is $16.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!