Programming

Write a program that inputs (from the user) the number of hours worked and hourly rate for employees and outputs the total pay. The program should process an arbitrary number of employees; the user will terminate input by entering 0 hours worked and pay rate. Use a class called worker with:
Attributes: Hours, Rate, Total
Methods: ComputeTotal ( ) and access (SetHours ( ), GetHours ( ),
SetRate ( ), GetRate ( ), and GetTotal( )) for each of the attributes

  1. 👍
  2. 👎
  3. 👁

Respond to this Question

First Name

Your Response

Similar Questions

  1. Programming

    Write a pseudocode to represent the logic of a program that allows a user to enter an hourly pay rate and hours worked. The program outputs the user's gross pay

  2. Math

    A parking garage charges a base rate of 3.50 for up to 2 hours, and an hourly rate for each additional hours. The sign below gives the prices for up to 5 hours of parking. Parking rates: 2hrs. $3.50 3hrs. $9.00 4hrs. $14.50 5hrs.

  3. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  4. java programming

    1. Time Calculator Write a program that asks the user to enter a number of seconds. • There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the

  1. Programming

    Write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five day week and the hours worked in a 252 day work year. The

  2. Programming

    Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to enter values for the current year and the user’s birth year. The program outputs the age of the user this year. Preferably a

  3. C Programming

    Write a program that prompts the user to enter a temperature, followed by a letter representing Celsius (C) or Fahrenheit (F). Then prompt the user for the conversion type and print the results to the screen with one decimal

  4. programming logic

    The program will accept user input to store the student's first and last name . If the name is ZZZ, then the program will end. The program will accept: a text entry for the class number (e.g., CGS 1000, COP 1000, etc.) a numeric

  1. math

    How would I solve this; John is paid at an hourly rate of $15 and over time rate of 1.5 times his hourly rate. If john puts in w regular hours and y overtime hours in a week, what is his total wage for the week? (Monday-Friday

  2. Math

    Alice earns 1.5 times her hourly rate for each hour she works after 40 hours in a week. She worked 50 hours this week and earned $660. What is her normal hourly rate? I know her average rate is $13.20, but I know that's not what I

  3. math

    Angelo is paid double time for each hour he works over 40 hours in a week. Last week he worked 46 hours and earned $520. What is his normal hourly rate?

  4. Oop programming

    Write a program that inputs (from the user) the number of hours worked and hourly pay rate for employees and outputs their total pay. The program should process an arbitrary number of employees; the user will terminate input by

You can view more similar questions or ask a new question.