Answered step by step
Verified Expert Solution
Link Copied!

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 2: 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 2 Zip Download Project 2 Zip
Once downloaded, you can find the zip on your machine, right-click on the zip file, and then select Extract-All. 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 way(only 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:
[R1] Work to be completed with discussion leaders (either in-person/zoom or discord group)
[R2] Reflection if the Existing system is fair.
[R3] Interview a few people about how they feel about
[R4] Reflection on whether the interviews have changed your view on how tips should be split among staff.
[R5] Completion of writing your algorithm and list of factors in English.
[R6] Reflection on how you will know if your approach is fair, and you think it is fair.
[R7] Completion of adding 3 additional test cases to help verify your algorithm
[R8] Implementation of your algorithm in Java.
[R9] Adding reflection on How did your algorithm influence people? How did it have power-over or enable power-to?
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, right-click on the folder (control+click or 2-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: 20.3
Enter tip amount: 4.5
Enter total amount: 20.3
Total Sales so far: 20.30
Current pooled tips so far 4.50
Number of Checks: 1
Do you want to stop(y/n)? n
Enter total check amount: 10.8
Enter tip amount: 3
Enter total amount: 0
Total Sales so far: 31.10
Current pooled tips so far 7.50
Number of Checks: 2
Do you want to stop(y/n)? n
Enter total check amount: 15
Enter tip amount: 18
Enter total amount: 18
Total Sales so far: 46.10
Current pooled tips so far 10.50
Number of Checks: 3
Do you want to stop(y/n)? n
Enter total check amount: 16.5
Enter tip amount: 0
Enter total amount: 20
Total Sales so far: 62.60
Current pooled tips so far 14.00
Number of Checks: 4
Do you want to stop(y/n)? y
Tip allocation for $14.00 in tips.
Servers : $7.00
Server 1 : $3.50
Server 2 : $3.50
Server 3 : $0.00(did not work)
Kitchen : $4.20
Chef : $2.10
Sous-Chef : $1.26
Kitchen Aid : $0.84
Host/Hostess : $1.40
Busser : $1.40
Can you please write a code for it .

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions

Question

3. Raster images for screen projects need to be 72 dpi to scale.

Answered: 1 week ago