Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSIGNMENT 3 General Topic of Proiect: In this Project, a system is designed for employees work in a restaurant In this restaurant, 1 chef, 1

image text in transcribed
image text in transcribed
ASSIGNMENT 3 General Topic of Proiect: In this Project, a system is designed for employees work in a restaurant In this restaurant, 1 chef, 1 chef assistant and 1 sous chef are working together. Each employee in this restaurant has one ID number, name and surname, base salary and bounties that will be defined step by step. Chef and chef assistant are responsible from meals and drinks. Sous chef is responsible from desserts. Assignment 3 is a follow-up to Assignment 1 and 2. Each assignment is evaluated separately for grading, but it if you did not complete Assignment 1 and 2 yet, it is recommended to complete it and send the class as a whole. In case of missing the first assignment, questions of Assignment 1 and 2 are explained again, but you will be graded by the question of Assignment 3. Assignment 1: Create a project with an appropriate name, and use the class "RestaurantSystem.java Create a main method, copy this paragraph into the main method as a multiple comment line. Define all necessary variables for all employees to display messages that are given in sample output. Then, by using Scanner, ask all values to user Assignment 2: After name requests, ask users to their expected base salaries. If one of the employees enter a base salary that exceeds the maximum salaries given below, salary value of the person should be asked again and again until corresponding user enters an appropriate value for the salary Base salary for chef may be up to $2000 per month. Base salary for chef assistant may be up to $1 500 per month. Base salary of sous chef may be up to $1000 per month. Assignment 3: Assume that 50 dishes of meals are sold in this restaurant in each week days. In weekends, it may be changed, but the lowest number of dishes sold is 200, and the highest number of dishes sold is 500 just for weekends Define number of dishes as a random number between 200 and 500 to handle this situation. After 20 dishes of meals are sold, employees win a prize. Bounty for 1 dish of meal is given below according to the type of employees Chef earns $0.50 from each plate. Chef assistant earns $0.40 from each plate. Sous chef earns $0.25 from each plate. Assume that there are 4 weekends, and 30 total days in a month (for instance, November 2017). Calculate total salaries of employees including base salaries and bounties in a month. Use method(s) to solve that problem. All details about method(s) are up to you If you solve the question without using method(s), even if your solution is correct, your grade for Assignment 3 will be halved. Different Sample Outputs are given below in order to understand all possibilities better

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

Step: 3

blur-text-image

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

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions