Design a class to represent employees in a small company

Assignment Help Basic Computer Science
Reference no: EM13888656

Scenario:

Design a class to represent Employees in a small company according to the following requirements:

1- An employee has three attributes: name , salary and jobTitle

2- Add one constructor without parameters. In initialization of objects, Name is set to the value "NEW" and salary value is unspecified but it has to be an arbitrary number between 100 and 20000.

3- Add the following methods to the class:

? getSalary- Returns employee's salary.

? getName- Returns employee's name.

? getJobTitle- Returns employee's job title.

? setName- Sets the employee's name to a given value. Precondition: the number of characters in the given name is not less than 3 characters.

? setSalary - Sets the employee's salary to a given value. Precondition: the given salary value should be greater than 100.

4- All employees in this company have the same permanent job title: "Accountant" and it can't be changed.

Reference no: EM13888656

Questions Cloud

Compare shipment contracts with destination contracts : Compare and contrast shipment contracts with destination contracts. What does it mean to have an insurable interest in goods to cover risk of loss?
Strategic plan for stroke in african american community : Strategic Plan for Stroke in African American Community
Early computer systems relied on command line interfaces : Early computer systems relied on command line interfaces to perform all actions. Today, the majority of systems use direct manipulation rather than a command line interface. The goal of designing a direct manipulation interface is to make use of the ..
What is the american dream and does it still exist? : What is the American dream and does it still exist?
Design a class to represent employees in a small company : Scenario:Design a class to represent Employees in a small company according to the following requirements: 1- An employee has three attributes: name , salary and jobTitle
Concerns and problems of the independent states : What were the issues, concerns and problems of the independent states. How did they differ from those faced by the National Government?
The annualized percentage forward discount for the yen : A forward premium for a given currency (say the nominal bilateral exchange rate value of the dollar where S = 80 yen/1 dollar = 80) occurs when the value of the currency as given by the forward spot rate appreciates such as S = 85 yen/1 dollar = 85. ..
Celanese chemical company stores large quantities : What utilities does this distributor provide?
Foreign exchange rate risk be fully covered or hedged : Forward premiums and discounts imply that there is risk in foreign exchange transactions. Explain the three types of FX risk? How can foreign exchange rate risk be fully covered or hedged?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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