Design an employee class

Assignment Help Basic Computer Science
Reference no: EM13207898

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class. The ProductionWorker class should have fields to hold the following information: Shift Number (an integer, such as 1, 2, or 3) Hourly Pay Rate The workday is divided into two shifts: day and night. The shift field will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutator methods for each class. Once you have designed the classes, design a program that creates an object of the ProductionWorker class and prompts the user to enter data for each of the object's fields. Store the data in the object and then use the object's accessor methods to retrieve it and display it on the screen.

Reference no: EM13207898

Questions Cloud

Compute the thermal energy evolved : When butane gas, C4H10, burns in oxygen gas, O2, to form carbon dioxide gas, CO2, and gaseous water, 2845 kJ of thermal energy is evolved per mole of butane burned.
What is the probability that a random sample have average : Starting salaries of economics majors have a mean of $47,000/year with a standard deviation of $8,000. What is the probability that a random sample of 100 majors will have an average salary of more than $50,000 year
What are the pro and con of digital rights managment : What are the pro's and con's of Digital Rights Managment?
Describe operation and its different components or stages : Describe your operation, its different components or stages, the materials used and the type of wastes generated. What is your waste management plan and approach for protecting the environment and human health?
Design an employee class : Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.
What is probability that annual return given is positive : Suppose that a mutual fund has an annual rate of return that is normally distributed with a mean of 10% and a standard deviation of 4%. What is the probability that the annual return in a given year will be negative
Terms is not compatible with the other terms on the list : Which of the following terms is not compatible with the other terms on the list?
Describe a dbms and its functions : Describe a DBMS and its functions. Name some of the popular DBMS software? You should search the Internet for the updated DBMS technology.
Formal disaster recovery plan : Describe at least five components that should be incorporated in a formal disaster recovery plan in order that MailMed Inc. can become operational within 72 hours after a disaster affects its computer operations capability

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain radio frequency identification technology

Write discussion of radio frequency identification (RFID) technology and Information Technology Infrastructure Library (ITIL) standards.

  Technology aided in the evolution of instrument

Identify one musical instrument that has evolved over the centuries (e.g., the piano or guitar) so that you can enlighten us about the evolution of this instrument.

  Explaining geographical information systems

Considering this, explain in scholarly detail some suitable examples of geographical information systems and how they are utilized in supporting both marketing and sales.

  Computer will ever be developed which can think like human

Do you think a computer will ever be developed which can think like human? Write down the ethical implications of creating such a computer?

  Identify all substrings to create one of five given words

Given a string of letters, identify all substrings that create one of five given words. For example, if the words (arguments) are: structure; such; system; blue.

  Standard analog-to-digital sampling rate in synchronous time

Iif synchronous time division multiplexing is used, along with standard analog-to-digital sampling rate, and each sample is converted into 8-bit value?

  Web page makes effective and consistent use of headings

Use search engine to determine the example of Web page which makes effective and consistent use of headings to organize Web page content.

  What is average seek time

Tracks traversed Disk receives a request to access a random sector on a random track. Assume the head starts at track 0. What is the average seek time?

  Determining privacy policy for organization

Many countries need organizations which gather personal information to publish privacy policy. Determine a copy of the privacy policy for an organization.

  Is it ethical for a potential employer to use the internet

Digital Footprint , is it ethical for a potential employer to use the internet this way? Also is it legal?

  Channel along which bits transfer circuitry of computer

Within circuitry of computer, each channel along which bits transfer, called a(n) ____, permits the several devices both inside and attached to system unit to communicate with each other.

  What are different types of memory

What are some of the newer technology innovations you have seen in regards to I/O and Memory? What are the different types of Memory and how much is recommended?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd