Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Youlube MILIUSUI UNE TU... UNTU T For marking purposes, use the input file workforcein.txt Declaration of Employee and Workforce Classes File: workforce.h An employee's information

image text in transcribed

image text in transcribed

image text in transcribed

Youlube MILIUSUI UNE TU... UNTU T For marking purposes, use the input file workforcein.txt Declaration of Employee and Workforce Classes File: workforce.h An employee's information is stored as an object of type employee consisting of name, employee id and employee salary. The methods read() and write() are defined for employee. Information about a company's workforce is stored in an object of type workforce consisting of the workforce size and a vector of employees of that size The methods read() and write() are defined for workforce. The read() and write () methods for workforce use the read() and write() methods for employee / #ifndef WORKFORCEH #define WORKFORCEJ #include #include include #include using namespace std: class employee { private! string name: // last name int id: // employee id number float salary: // employee salary public: employee (string n = "nobody", int i = 0, float x = 0); void read (istream & in); void write (ostream & out) const; class workforce { private : int size: vector employee > list; // size of workforce // vector of employees publie: workforce (int n); // set sine vold read (istream in): vold write (ostream& out) const; Wendif / WORKFORCIUS / Type here to search O H e a sign5 (3).pdf 6/6 Assignment #5 Implementation of Employee and Workforce Classes / File: workforce.cpp Implementation of classes employee and workforce / #include "workforce.h" Il implementation of employee m employee it employee (string n, int i. floats) m namen: salary : vold employee :: read (istream & in) in >> name >> id >> salary: vold employee :: write (ostream & out) const out

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is dividend payout ratio ?

Answered: 1 week ago

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago