Due: 9/23 or 24 depending on your lab section.
Nothing keeps you going as a student better than some food, whether it is before, between, or after classes! But sometimes it can be hard to decide where to go for food. Today we will create a recommendation service to help our fellow Miners decide where to eat! All they have to do is answer a few questions, and our code will tell them which food option is the best.
We have identified 4 popular food establishments that we would like to recommend and 4 key questions (labelled in the red diamonds below) that should be asked. Below, we’ve organized our food establishments based upon what should be recommended according to the answers to these questions.
For example:
Boba Mi Amor should be recommended when the user responds:
To pricePoint with a value that is < 10 and to isInterestedInBoba with the answer true. (isAddictedToRolls and isFullMeal can have any answer.)
Starbucks should be recommended when the user responds with EITHER of the following:
pricePoint < 10 and isInterestedInBoba is false. (isAddictedToRolls and isFullMeal any answer.)
pricePoint >= 10, isAddictedToRolls is false, and isFullMeal is false. (isInterestedInBoba any answer.)
Open LabThree.java and add nested if statements to implement this logic.
Exactly one restaurant name should be outputted each time the program is run, based upon the answers received from the user input on the terminal.
The program should also validate user input for pricePoint, and continue to prompt the user for inputs until the program gets a valid input.