Question: Create a simple Java ticket booking system for an event that provides a 1 0 % discount for premium members. The system should prompt the
Create a simple Java ticket booking system for an event that provides a discount for premium members. The system should prompt the user for their membership status eg "standard", "premium" and use an ifstatement to check if the user is a premium member, ignoring case. If they are, set a discount flag to true and use it to apply the discount to the total ticket price. Your tasks include implementing the membership comparison, setting and using the discount flag to adjust the final cost, displaying a message confirming the discount, testing the program with both premium and standard statuses.
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
