Thursday
April 24, 2014

Homework Help: Programming

Posted by Brenda on Tuesday, January 10, 2012 at 4:15pm.

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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Programming in c++ - Write a program in c++ that inputs a number [1-12] from the...
C Programming - Write a program that prompts the user to enter a temperature, ...
Programming - Write a pseudocode program that asks the user for an integer ...
programming - 1. Develop a menu-driven program that inputs two numbers and, at ...
Oop programming - Write a program that inputs (from the user) the number of ...
programming - Write a C++ code to count the number of characters, words, and ...
OOP PROGRAMMING - Write a program the inputs (from the user) the number of hours...
Computer programming - Sorting is a common operation used in programming. ...
computer science /use java language - write the program that inputs a string ...
programming - write a program that asks the user to enter an objects mass, and ...

Search
Members