Posted by Geno on Saturday, January 22, 2011 at 2:34pm.
Start with a template and fill in the information as stipulated by the requirements. I do not see requirements for storing the data, so each instance of Worker will just request input, print the calculated results, and quit.
public class Worker{
// state variables: (define attributes)
...
// constructor (from hours, rate)
...
// Methods
// accessors for each attribute
...
// compute method, returns total
...
public static void main(String[] args){
// A while loop to request input,
// create an instance of Worker
// output data and total
// terminate while-loop when hours and rate are 0
...
}
}
Related Questions
OOP PROGRAMMING - Write a program the inputs (from the user) the number of hours...
Programming - Write a program that inputs (from the user) the number of hours ...
computer Programming - A small startup software developer company needs to ...
programing - A small startup software developer company needs to create a ...
computer programming - small startup software developer company needs to create ...
devry - A small startup software developer company needs to create a program ...
programing - small startup software developer company needs to create a program...
Programming C# - Write a program that prompts the user for a name, social ...
programming - A small startup software developer company needs to create a ...
programming - Write a C++ program in which you declare variables that will hold ...
For Further Reading