Compute total and access methods, Computer Engineering

Write a program that input (from the user) the number of hours worked and hours pay rate for employees and output their total pay. The program should process an arbitrary number of employees; the user will terminate input by entering 0 for hours worked and rate of pay. Use a class called Worker as follows:

a)    Attributes: Hours, Rate, Total

b)    Methods: ComputeTotal and access methods (SetHours, GetHours, SetRate, SetTotal and GetTotal) for each of the attributes.

Posted Date: 3/15/2013 3:22:01 AM | Location : United States







Related Discussions:- Compute total and access methods, Assignment Help, Ask Question on Compute total and access methods, Get Answer, Expert's Help, Compute total and access methods Discussions

Write discussion on Compute total and access methods
Your posts are moderated
Related Questions
Dynamic address translation :  If, when executing an instruction, a CPU fetches an instruction located at a specific virtual address, or fetches data from a particular virtual

Define the component of a process precedence sequence? Ans. Process name, sequence operator and also concurrency operator components are process precedence sequence.

Here are some common development milestones that  you should aim for: 1. Send a packet over. Send an acknowledgement back. 2. Have checksum algorithm executed 3. Ability t

define request edge and assignment edge

Can we create a gui status in a program from the object browser? Yes.  You can make a GUI STATUS in a program using SET PF-STATUS.

what are the feasibility study of online result management system?

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes


Real time clock A real-time clock keeps the time in real time - i.e. in hours and minutes. Software for the real-time clock comprises an interrupt service procedure which is c

What are the types of container classes in C++?  Ans) A container class is a class that is used to hold objects in memory/external storage. A container class behaves as a ge