Ask Computer Engineering Expert

To do: EMPLOYEE AND EMPLOYEEDRIVER
prepare a class named Employee that has the following instance variables:
• name. A String object that holds the employee's name
• idNumber. An int variable that holds the employee's ID number
• department. A String object that holds the name of the department where the employee works
• position. A String object that holds the employee's job title.
The class should have the following constructors (note - we will only use the first one in our ex data, but remember - this is a blue print that can be used in many applications. Other applications might use the other constructors):
• A full constructor that has parameters for all four instance variables
• A constructor that takes in the name and id and sets these values. It sets the department and position to a blank (" ");
• A no-argument constructor 
prepare your getters and setters and your toString() method.

prepare a driver program named EmployeeDriver that creates the following three employees by calling the full constructor. Then have it print each of them out by calling the toString() method.

Name ID Department Position
Mike Miller 78655 Accounting President
Sam Jones 76798 IT Programmmer
Sally Rogers 98745 Technical Support Help Desk Technician



To do: CAR AND CARDRIVER
prepare a class named Car that has the following instance variables:
• year - an int field that has the model year for the car
• make - A String object that holds the make of the car
• speed - an int field that holds the car's current speed
The class should have the following constructors:
• a full constructor where all values are passed in
• a constructor where the year and make are passed in and the speed is set to zero
• a no-argument constructor 
prepare your getters and setters and your toString() method.
prepare the following methods (I will help you if you need me to - post a note in the discussion forum)
• accelerate() - this method should add five miles to the speed each time it is called. Since this is a constant 5 miles per hour, that should be a constant in the method and there are no need for parameters.
• brake() - this method should subtract ten miles from the speed each time it is called. Since this is a constant 5 miles per hour, that should be a constant in the method and there are no need for parameters.

prepare the CarDriver program that creates a Car object calling the full constructor (you can choose values for the arguments). Call the accelerate() method five times and print just the speed after each method call. Call the brake() method once. Then call the toString() method to print out the Car instance.


To do: PAYROLL AND PAYROLLDRIVER
prepare a Payroll and PayrollDriver class. The Payroll instance variables should be the employeee's name, ID, hourly pay rate, and number of hours worked. You decide appropriate variable names and data types. prepare a full and no-argument constructor, your getters and setters, and a toString() method. prepare a method named grossPay() that find outs and returns the gross amount paid. In the Driver, create two instances of the Payroll class. With the first one, call the full constructor (you can use whatever values you like). For the second one, use the no-argument constructor followed by the setters to set the field values (you can use whatever values you like). Call the toString() method to print each out. Also call the grossPay() method and print out the employee's gross pay. Make certain it is formatted like money.
See Moneyex.java.


Your jar file that you submit needs to be named dwolffmod2.jar (except your name). It must have one package in it named dwolffmod2 (except your name). There should be exactly ten programs in the package: Changes you should have made in this module:
SoftwareSales
ShippingCharges
Book and BookDriver
Employee and EmployeeDriver
Car and CarDriver
Payroll and PayrollDriver

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M994919

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As