Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please can you tell me the right option , no need of an explanantion just dont wanna get my thinking wrong i worked it out

please can you tell me the right option , no need of an explanantion just dont wanna get my thinking wrong i worked it out i wanna see if u get the same as me. image text in transcribed
tenhnician.cpp
#include "Technician.h"

Technician::Technician(string lab)
{
this -> lab = lab;
}
string Technician::getLab()
{
return lab;
}
void Technician::setSalary()
{
salary = 40000;
}
void Technician::giveRaise()
{
salary *= 1.05;
}
techncian.h code below
#ifndef TECHNICIAN_H
#define TECHNICIAN_H
#include "Employee.h"
class Technician: public Employee
{
private:
string lab;
public:
Technician(string);
string getLab();
void setSalary();
void giveRaise();
};
#endif
sales.cpp code below
#include "Sales.h"
Sales::Sales(string dept)
{
this -> dept = dept;
}
string Sales::getDept()
{
return dept;
}
void Sales::setSalary()
{
salary = 50000;
}
void Sales::giveRaise()
{
salary *= 1.1;
}

sales .h code below
#ifndef SALES_H
#define SALES_H
#include "Employee.h"
class Sales: public Employee
{
private:
string dept;
public:
Sales(string);
string getDept();
void setSalary();
void giveRaise();
};
#endif
The Employee base class and the derived classes Sales and Technician (their definitions and implementations) can be found in * FinFles Needed For Coursework Exam 2*, The following test program is written to test these classes: If this program were run, what input should the user provide in order to get the output: 20000 Select one: a. Code doesn't work. There is a missing include statement b. Any of 1,2 or 3 c. 1 d. 2 e. 3

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

Understand some techniques for evaluating the HRM function

Answered: 1 week ago