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 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 discount.
Gold G: Additional discount.
Total Purchase Amount:
If the total purchase exceeds $ apply an additional discount.
Write a Java program that asks the user to input the customer's membership level and the total amount spent. Use nested ifelse 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 RSG: SEnter total amount spent: Total Bill: $Enter customer's membership level RSG: GEnter total amount spent: Total Bill: $
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
