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

  Write a program to crypt its input accordingly

Write a program to crypt its input according to a specified transformation scheme

  Write a program in which the user is prompted

Write a program in which the user is prompted for the number of values that they will be entering. The user then enters that number of integers into an array

  Assign passed value to function to return value

Assign passed value to this member and another function to return value. Your main should read the integer from an input data file, and write the output to the output data file.

  C++ pointer function synopsis

C++ pointer Function Synopsis: char *amonthLess(char *dateString) Description: Variable dataString is a valid date in a form of mm/dd/yyyy Given the above information, write a main() program that asks a user to enter a date in a form of mm/dd/yyyy..

  C program to mips program

Convert the following C program to MIPS program. Assuming that i, j, k, f, are stored in registers $s0, $s1, $s2, $s3 already. The base address of arrays A and B are in registers $s4 and $s5, respectively. (30

  Describe the process replace a do...while loop with an equiv

Describe the process you would use to replace a do...while loop with an equivalent while loop. What problem occurs when you try to replace a while loop with an equivalent do...while loop? Suppose you have been told that you must remove a while loop a..

  Implement a class timedepositaccount

It is not possible to deposit additional funds into this account. Provide a withdraw method that removes the entire balance. Partial withdrawals are not allowed.

  Insert the missing code in the c program

You are to insert the missing code in the C program given for combinational equivalence checking. This program will interface with the CUDD package and will parse netlist files in ISCAS85 circuit format. Next, BDDs will be created for each circuit an..

  Write c function to sort one dimensional integer array

Consider the values sorted in the array. Sort it in ascending order using Bubble sort technique showing all iterations: write C function to sort one dimensional integer array in ascending order.

  Recognition of the problem by the hsbc

What problem did the HSBC face in this case? What people, technology, and the organization factors were responsible for problem? Did HSBC management correctly recognize the problem?

  Using an abstract class with only pure virtual functions

Using an abstract class with only pure virtual functions, create three small classes unrelated by inheritance---clases Building, Car and Bicycle. Give each class some uique appropriate attributes and behaviors that it does not have in common with oth..

  Many bank atm machines have recently added the ability to

many bank atm machines have recently added the ability to dispense cash with- drawals in multiple bill denominations

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