Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include #include #include #include using namespace std: class employee private string name; //last name int id; float salary:// employee salary //employee id number public employee

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

#include #include #include #include using namespace std: class employee private string name; //last name int id; float salary:// employee salary //employee id number public employee (string nnobody" int i0, float s- 0); void read (istream & in); void write (ostream & out) const; class workforce private int size vector ist;//vector of employees size of workforce public workforce (int n); void read (istream&in); void write (ostream & out) const; // set size n #endif *WORKFORCEH * Implementation of Employee and Workforce Classes /File: workforce.cpp Implementation of classes employee and workforce/ #include "workforce. h" employee:: employee (string n, int, float s) namen id salary- s void employee::read (istream & in) in name id salary void 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 with AI-Powered 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