Question: Exercise 1 ( write the code in java language and use netbeans program ) Create a Java program for a retail store's checkout system. The

Exercise 1(write the code in java language and use netbeans program)
Create a Java program for a retail store's checkout system. The final bill for a purchase depends on two factors: the customer's membership level and the total amount spent.
Membership Levels:
Regular (R): No additional discount.
Silver (S): Additional 10% discount.
Gold (G): Additional 20% discount.
Total Purchase Amount:
If the total purchase exceeds $200, apply an additional 5% discount.
Write a Java program that asks the user to input the customer's membership level (R,S,G and the total amount spent. Use nested if-else conditions to calculate the final bill based on the membership level and total purchase amount, considering all applicable discounts. Display the total bill amount after all discounts have been applied.
Your program should execute as the below sample runs:Enter customer's membership level (R/S/G): SEnter total amount spent: 180Total Bill: $162.00Enter customer's membership level (R/S/G): GEnter total amount spent: 150Total Bill: $120.00
Exercise 1 ( write the code in java language and

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 Programming Questions!