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 basic steps are required for analyzing data using micro

Write a 200 word response that answers the following questions: What basic steps are required for analyzing data using Microsoft®Access®? How could these steps help you diagnose and troubleshoot Microsoft®Access®errors? Which of the five steps presen..

  Formulate the lp model to minimize weekly shipping cost

Formulate the LP model to minimize weekly shipping cost and formulate the LP model to minimize production and inventory costs and meet the demand for the next four months.

  Explain significance of top management commitment

Explain the significance of top management commitment and development of standards for successful project management. Give examples to show the significance of these items based on experience on any type of project.

  Two-way set associative with 32 kb capacity and 64 byte

1. Assume a two-way set associative with 32 KB capacity and 64 bytes blocks. a. How many bits are needed to represent the index size?

  What is data integrity and in what way it is implemented

What is data integrity and in what way it is implemented in DBMS MS Access

  Write an analytical report describing the impact of breach

The case study focuses on a major IT security breach that occurred in the recent past. Consider yourself as the IT person in charge at TJX. You need to analyze the case and describe the impacts of the breach on TJX.

  The logic structure to capture the payment information

Document the steps for the logic structure to capture the payment information. This can be done as either a flowchart or pseudocode. Be sure to include inputs, variable declarations and assignments, and outputs.

  Write a program that will draw a box of asterisks on scrreen

Write a program that will draw a box of asterisks on the screen

  Display an appropriate error message

User Radio Buttons with a shared event procedure and a Select Case to determine which text box (State name or abbreviation) should have the focus and which should be set to Readonly.

  Define the matrices

Define the matrices A = [12 16 4;23 1 21;9 10 1], B = [2 7 14;3 11 2;-9 10 12], C = [43 12;13 12], and D = [1 2 3;4 5 6]. Perform the following additions: (1) A+B, (2) A+C, (3) A+D, (4) B+C, (5) B+D, and (6) C+D. Are each of the above additions possi..

  Calculate net pay and totals from the inputs provided

Write a program to calculate Net Pay and Totals from the inputs provided below. The program should use a loop & prompt user for inputs shown.

  Assess new technologies and the benefits the technologies

Write a document that will assess new technologies and the benefits the technologies will bring to an organization.

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