Question: help please, you have to use java cosing this program. Activity 2 As another offer to its membered customers, the restaurant wants to give discounts

help please, you have to use java cosing this program. help please, you have to use java cosing this program. Activity 2

Activity 2 As another offer to its membered customers, the restaurant wants to give discounts based on each individuals' membership status code. Write a new program for the manager that does the following things: 1. Have a welcome message to the customer and ask for their membership status code. 2. If the code is 2014, the customer gets a 15% discount; if it is 2015, they get a 10% discount; and if it is 2016, the customer gets a 5% discount. Which data type will you use to hold this code? There are actually multiple possibilities. 3. Display a message informing the customer of their discount amount. Use a switch statement to do this. 4. Also add a message stating that the customer has received no discount if they did not enter any of the above codes. Which keyword must you use in the switch statement to do this? 5. Do not forget to have your comments! Activity 3 Update the above program such that the program asks the user about the bill amount and then calculate the final price depending on the discount. Do not forget to add a 4.6% sales tax to the final price and print the total. Use a constant to hold the sales tax. Here are some points to think about that should help guide you: 1. What additional variables will you need to declare? 2. Will there be any user input required? If so, what variable will you save the input in? What data type must this be? 3. Don't forget to have good output displayed back to the user - what kinds of messages will be most helpful to them

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!