Java

posted by .

You are to create an efficient OO application to be used by the wait staff at the Mason Inn. You will process one waiter/waitress at a time. The user will provide information for him or her, to include: their name, number of hours worked and hourly wage. Additional information to be stored for each employee will be their total number of tables served and the total tips collected. To make your data definition class more robust, include the capability to provide either no information; the employee name; or the employee name and hourly wage at object creation time.


The hourly wage – must be between the minimum of $5/hour and the maximum ‐‐ $8/hour, and number of hours worked – must be between one and sixty.
When processing an employee, prompt for the amount of tip for as many tables as desired. The value of each tip should be between $.01 and $100.
The Restaurant application should request the necessary input from the user (name, hourly wage, number of hours worked and each tip amount received) and produce readable output for each waiter/waitress to include the total salary for the week – based on hourly pay, total received in tips, total amount earned (salary and tips) and the average tip amount. Then allow the user to enter another employee. In addition to the summary presented for each member of the wait staff, a final summary that includes the total salary paid out, the total in tips collected and the largest tip received by any wait person.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. math

    A standard tip for a waiter or waitress is between 15% and 20% of the bill. If Sue wants to tip 20% of her $45.00 dinner bill, how much should she leave the waiter as a tip?
  2. Java

    Write a GUI application that prompts the user for a number between 1 and 5. Be sure to include error checking so that the program continues to prompt the user for a number until the user's entry is between 1 and 5, inclusive. Once …
  3. elementary statistics

    # Research the topic of Job Satisfaction using the Business Source Premier Database (EBSCO) and/or the ABI Inform Global database in the Library using the instructions linked here. # Provide a summary of the research article. Include …
  4. algebra

    restaurants typically pay wait staff an hourly wage that is lower than minimum wage. the wait staff is expected to make up the difference in tips. the minimum wage is $5.15 per hour and a restaurant pays the wait staff $4 per hour …
  5. Computer Science

    Consider the following application files: /JavaCS1/src/guiprojectcity2/DisplayWindow.java import java.awt.*; import javax.swing.*; public class DisplayWindow extends JFrame{ private Container c; public DisplayWindow(){ super("Display"); …
  6. Programming with Eclipse

    Design, implement, test, and debug an application to compute an employee’s weekly pay. If the employee works more than 40 hours a week, the employee earns 1.5 times the basic hourly pay for any time worked over 40 hours. The program …
  7. java

    Write a java application that finds the smallest of several integers. Prompt the user for the number of integers that will be input, then prompt the user for that number of integers. Evaluate the integers to determine the smallest …
  8. java.please help

    Write a Java program that prompts the user for a string. If the string entered by the user does not start with Hello and does not end with a digit, print incorrect and re-prompt the user. Otherwise, print Thank you.
  9. java programming

    the learner is asked to write a program using java with user input that caculate and displays, the number of months it will take the user to save an amount of money. the user must enter the
  10. FL

    • Loops • File processing • Previously mastered course topics Create an application allowing employees to take orders and then tally up the total costs from its customers. The coffee shop offers the following items on its menu: …

More Similar Questions