Project #18848 - Object oriented

Exercise 1

 

·         Create a class called Employee that includes three pieces of information as data members- a first name (type string), a last name (type string) and a monthly salary (type floating point).Your class should have a constructor that initializes the three data members. Provide a set and get functions for each data member. 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

 

 

 

Exercise 2

 

·         Define a function hypotenuse that calculates the length of the hypotenuse of a right triangle when the other two sides are given.  Use this function in a program to determine the length of the hypotenuse for each of the triangles shown below.  The function should take two double arguments and return the hypotenuse as a double.
 
Exercise 3
 
·         Dates are commonly printed in several different formats in business correspondence.  
Two of the more common formats are:
 
07/21/1955
July 21, 1955
 
Write a program that reads a date in the first format and prints that date in the second format.
 
 

Subject Computer
Due By (Pacific Time) 12/09/2013
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy