Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project 2 : Algorithms Have Political Power Introduction For our second Project, we will use all of what we have learned so far to make
Project : Algorithms Have Political Power
Introduction
For our second Project, we will use all of what we have learned so far to make a Java application for deciding how tips in a restaurant are divided among staff. You will first build an application to manage checks in a restaurant. You will design steps to go through a group of checks at the end of the day, computing total sales and the total pooled tip amount. You will then come up with an algorithm, for how to divide the pooled tip amount among workers in a way that you think is fair. There are many approaches to dividing the pooled tip amount.
Setup
The project has the following setup:
Download the following zip: Project Zip Download Project Zip
Once downloaded, you can find the zip on your machine, rightclick on the zip file, and then select ExtractAll. Note this will extract the contents wherever you downloaded the folder.
Now that the folder is extracted, open IntelliJ and open the project. You can do this in the following wayonly do one OR the other and not both:
From Home Screen
Click Open
Navigate to where your project is stored on your machine. Select the RestaurantManager folder and click OK
Once Intellij opens, you may need to select a project JDK you can do this by opening the RestaurantCheckManager.java file in the src folder and then clicking Setup SDK in the top right corner.
Once clicked, select your Java SDK of Choice.
With this selected, all of the errors should be fixed and you can work inside the provided main method.
From an already open Project.
If you already have a project open you can create a project in the following way:
From the File Menu select New and then select Project from Existing Sources
This will open a window where you can select the folder of our project. You will need to know where you extracted the folder on your machine.
Click on the RestaurantManager folder and then select OK
A new window will open, you should be able to click next near the bottom.
On the next screen, click the Next button.
On the next screen, click the Next button.
On the next screen, click the Next button.
Make sure your JDK is selected and THEN click Create.
A dialog will pop up and select This Window.
You can work inside the provided main method.
Now that the project is open you may begin coding. Note that a src and a class file have already been made for you. A copy of the project's Word doc is also in the zip as well.
Requirements
For the requirements of our project, make sure you have completed all of the following:
R Work to be completed with discussion leaders either inpersonzoom or discord group
R Reflection if the Existing system is fair.
R Interview a few people about how they feel about
R Reflection on whether the interviews have changed your view on how tips should be split among staff.
R Completion of writing your algorithm and list of factors in English.
R Reflection on how you will know if your approach is fair, and you think it is fair.
R Completion of adding additional test cases to help verify your algorithm
R Implementation of your algorithm in Java.
R Adding reflection on How did your algorithm influence people? How did it have powerover or enable powerto
Submission
For the submission of this project, you are required to submit a zip of your project that also includes the Word doc linked above. Failure to do so will result in points being lost.
To submit the project please do the following:
Find where on your computer you have your project stored.
Once found, rightclick on the folder controlclick or finger tap for macOS and select the "compress folder" in the menu.
Once the zip is created, upload the file to Canvas. only zips are allowed no other extension will be accepted.
Sample Output
Welcome to the check manager, please follow the instructions below!
Enter total check amount:
Enter tip amount:
Enter total amount:
Total Sales so far:
Current pooled tips so far
Number of Checks:
Do you want to stopyn n
Enter total check amount:
Enter tip amount:
Enter total amount:
Total Sales so far:
Current pooled tips so far
Number of Checks:
Do you want to stopyn n
Enter total check amount:
Enter tip amount:
Enter total amount:
Total Sales so far:
Current pooled tips so far
Number of Checks:
Do you want to stopyn n
Enter total check amount:
Enter tip amount:
Enter total amount:
Total Sales so far:
Current pooled tips so far
Number of Checks:
Do you want to stopyn y
Tip allocation for $ in tips.
Servers : $
Server : $
Server : $
Server : $did not work
Kitchen : $
Chef : $
SousChef : $
Kitchen Aid : $
HostHostess : $
Busser : $
Can you please write a code for it
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started