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

  What is stored in alpha after the following code executes

What is stored in alpha after the following code executes? int alpha[5] = {0}; int j; for (j = 0; j 2) alpha[j - 1] = alpha[j] + 2; }

  Program specifications for a simple business problem

Given a set of program specifications for a simple business problem requiring iteration, code and test a program that meets the specifications and employs best programming practices.

  Color triangle for matching stimuli of wavelengths

1. The following is the color triangle for matching stimuli of wavelengths 700, 546.1 and 435.8nm showing the locus of spectral colors. Assume a color in the blue-green range has the coordinates of r = -.50, g = +.75 (the dot in the diagram below)

  Constructs an internal linked representation of the tree

Output Your program must print a string representing the postorder traversal of the tree followed by a newline character.

  Write a program with the output hello world hello

Write a program with the following output: (Notice the newline and space) Hello world! Hello

  Explain radio frequency identification technology

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

  What is the privacy of the data and information

What is the privacy of the data and information? Give detailed information of computer virus and how it works? How one can protect the computer from virus or explain the working of antivirus.

  How did his presentation improve your understanding

Overview of the presentation - what did Mr Boti cover 2. How did his presentation improve your understanding of what engineers in your chosen field do when employed by engineering firms like ReCon.

  Explaining options to begin troubleshooting

Which two options should you use to begin troubleshooting?

  Relationnal database design

1-Relationnal database design: (Relationnal database design )Given the following table that keeps track of student clubs memberships: StuentClub( S

  Alternative ways to model section

Distinguishes one section from another for the same course but does not uniquely identify a section. How did you model SECTION? Why did you chose this way versus alternative ways to model SECTION?

  Write a python function celcius fahrenheit

Write a python function celcius_fahrenheit wich takes temperature values from a list and changes them into fahrenheit values.

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