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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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