Design employee objects-display each object-s yearly salary

Assignment Help Programming Languages
Reference no: EM1372548

Create a class called Employee that includes three pieces of information as instance variables-a first name (type string), a last name (type string),and a monthly salary (type integer). Your class should have a constructor that initializes the three instance variables. Provide a property for each instance variable. The property for the monthly salary should ensure that it value remains positive-if an attempt is made to assign a negative value, leave the original value. Write a test module named EmployeeTest that demonstrates class Employee's capabilities. Create two employee objects and display each object's yearly salary. Then give each employee a 10% raise and display each Employee's yearly salary again.

Reference no: EM1372548

Questions Cloud

What is the magnitude of the static frictional force : The wheel of a car has a radius of .350 m. the engine of the car applies a torque of 295 Nxm to this wheel that does not slip against the road surface.
What is the magnitude of the static frictional force : The wheel of a car has a radius of .350 m. the engine of the car applies a torque of 295 Nxm to this wheel that does not slip against the road surface.
What will be price of wheat and how many wheat farms : what will be price of wheat, how much total wheat will be demanded and how many wheat farms will there be.
Causes and effects of crimes : In many cities throughout the United States, the prevalence of hate crimes has increased. You've been asked to provide your insight in this and recommend manners to decrease the occurrence of these types of crimes.
Design employee objects-display each object-s yearly salary : Design two employee objects and display each object's yearly salary. Then provide each employee 10% raise and display each Employee's yearly salary again.
Calculate the predetermined overhead rate : KLP offers consulting services and uses a job order system to accumulate cost of client projects. Traceable expenses are charged directly to individual clients,
What is the average power delivered by engine : The supersonic aircraft Concorde has a length of 63 when sitting on the ground on a typical day when the temperature is 13.00. The Concorde is primarily made of aluminium. In flight at twice speed of sound, friction with the air warms the Concorde..
What would peso dollar exchange rate be if purchasing power : What would peso/dollar exchange rate be if purchasing power parity holds. If a monetary expansion caused all prices in Mexico to double.
Find the decrease in kinetic energy through the collision : A 0.22kg arrow with a velocity of 15.00 m/s to the west strikes and pierces the center of a 3.00 kg target. What is the final velocity of combined mass? Answer in m/s.

Reviews

Write a Review

Programming Languages Questions & Answers

  Program to allot new value to first element of array

Write the single statement which assigns new value to first element of array. This new value must be equal to twice value stored in the last element of the array.

  Develope a tutoring software for an elementary school

You are the project manger for a company that is planning to develope a tutoring software for an elementary school that will follow their curriculum create a work breadown structure.

  Write implementation of counter class

Write the implementation (.cpp file) of the Counter class. Here is the full specification of the class: A data member counter of type int.

  Estimate the storage space for telephone book

Estimate the storage space (number of bytes) required for each of the following items: A telephone book with 10,000 entries consisting of names, addresses and phone numbers. Use your phone book to estimate the average length of an entry.

  Write program to merge two files that contain polynomials

Write a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order.

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Write the program to model simple calculator

Write the program to model the simple calculator. Each data line must consist of next operation to be performed from list below and right operand.

  Write program that computes loan payments

Write a program that computes loan payments. The loan can be a car loan, a student loan, or a home mortgage loan. The program lets the user enter the interest rate.

  Program to checks to see if the value of a is valid

Checks to see if the value of a is 0; if it is, the code prints the message "no solution for a=0" and returns from the function.

  Create unix shell script to input number of hours worked

Create a Unix shell script to input number of hours worked and pay rate and compute the total pay, then the social security amount (assume 5%), then the net pay.

  Write an application to calculate the factorials

Write an application that calculates the factorials of 1 through 20. use type long. Display the results in tabular format. What difficulty might prevent you from calculating the factorial of 100?

  Write the program by declaring one-dimensional array

Write the program by declaring one-dimensional array which could be used to hold data for grades (int type) of 10 students. The program will prompt user for numeric grades.

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