Create a base employee class and a derived studentemployee

Assignment Help C/C++ Programming
Reference no: EM13347952

Create a base Employee class and a derived StudentEmployee class. Below is the basic UML structure of both classes.

1258_Create a base Employee class.png

Implementation

This section further explain each class method found within the UML diagram.

Class Employee

- get/setName gets and sets the employee's private name variable. Be sure to filter out bad input, such as empty strings.

- get/setEmployeeId gets and sets the employee's ID number. Be sure to filter out ID numbers that are less than or equal to zero.

- set/isWorking sets and gets whether or not the employee is working. No filtering is required.
- toString returns a tab-delimited string in the following format: "name \t id \t is working"

Class StudentEmployee

- get/setPayRate gets and sets the employee's pay rate. Be sure to filter out negative values.

- get/setHoursWorked gets and sets the hours worked for the current week. Be sure to filter out negative values.

- getWeeklyPay computes the student's weekly pay. To calculate, multiply the number of hours worked times the pay rate.

- set/isWorkStudy sets and gets whether the student is work study.

- toString() returns a tab-delimited string in the following format: "name \t id \t is working \t hours worked \t is work study \t pay rate"

Testing Our Classes

Use your main function to test the StudentEmployee class. In main, prompt the user for a CSV (comma separated value) file to open. Then, using the provided StringSplitter class, split the CSV using the comma as a delimiter and use the data to create a new StudentEmployee.

Reference no: EM13347952

Questions Cloud

Question 1 explain each of the following using supply and : question 1 explain each of the following using supply and demand diagrams.a when a cyclone hits queensland the price
What deceptive marketing practices have you personally : what deceptive marketing practices have you personally witnessed? are they price promotion product or packaging
Question 1 tawny frogmouth home range use in melbournea : question 1. tawny frogmouth home range use in melbourne.a recent study examined the home ranges of tawny frogmouths in
Questiondetails areimpact of zigbee on telecommunication : questiondetails areimpact of zigbee on telecommunication systems. in this report need to either do some measurement or
Create a base employee class and a derived studentemployee : create a base employee class and a derived studentemployee class. below is the basic uml structure of both
Part -1make sure you read the output carefully this output : part -1make sure you read the output carefully. this output pertains to a set of juvenile court data looking at the
Cost of capital to assess its restaurant capital : cost of capital to assess its restaurant capital investmentsthere are four questions. all questions are
Prepare a simple game of blackjack using object oriented : prepare a simple game of blackjack using object oriented programming.uml class diagramsyour project must implement the
1nbsp select two companies from the same industry2nbsp : 1.nbsp select two companies from the same industry2.nbsp gather financial data from web sites refer items 2 4 and 9 of

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Make a class constructor that initializes a customer

Make a class constructor that initializes a customer with a name, number, and order size.Make class member functions to print each of: name, number, and order size.

  Write a function named vowelwords

Write a function named vowelwords(), that reads the file text1.txt and create a new file named text2.txt, which shall contain only those words from the file text1.txt which don’t start with an uppercase vowel(i.e., with ‘A’,’E’,’I’,’O’,’U’)

  What is the output

Suppose that x and y are int variables, z is a double variable, and ch is a char variable. Suppose the input statement is.

  Is the code properly commented

Does each case in a switch statement terminate with a break? Is there a default case?

  The staffs need a program that can determine

The staffs need a program that can determine whether children have been naughty or nice. individual data files(can be any name) for each childred are available that consist of 368(365+3)integer number each.

  Write a class volumeofbox that calculate the volume

write a class VolumeOfBox that calculate the volume by this formula : length * breadth *

  Dealerships are awarded the rebate

Dealerships are awarded the rebate on a quarter-by-quarter basis, only for quarters where their actual sales exceeded expected volumes for that quarter. Expected sales volumes for each quarter are as follows:

  Calculate the trajectory of a soccer ball

Write a program to calculate the trajectory (flight path) of a soccer ball

  Calculates the sum of the cube roots of two integers.

Wrtie a program that calculates the sum of the cube roots of two integers. The program should use the following functions as well as a main funcion. 1) enter one positive value 2) compute the cube root of one integer 3) report the value of two intege..

  Expressions until the user says

Expressions until the user says he or she wishes to end the program. For a more difficult assignment, enhance your program so that the expression need not be well formed; if it is not well formed, then the user is asked to reenter the expression.

  Write a program that uses joptionpanes to perform

For example, if the distance of travel is 30 kilometers, the time of travel is 2 hours, then the speed is 30/2 = 15 (kilometers per hour).

  Find the sixth maclaurin polynomial for sin x

Find the sixth Maclaurin polynomial for sin x and use Chebyshev economization to obtain a lesser-degree polynomial approximation.

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