ericty adhere to the Oject Oriented specications ven inthe problem statement Al clas mes member variulenamendfuntioname should be the samepecitedin the olem statement

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

QUESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , employee.h , developer.cpp , person.h  )

--------------TEMPLATES BELOW---------------------

main.cpp template

#include <iostream>
using namespace std;
#include "Developer.cpp"
int main()
{
string name,skills,role,gender;
int empId,experience;


//fill your code

return 0;
}

 

employee.h template

#include<iostream>
using namespace std;
#include "Person.h"
class Employee:public Person{
protected:
int experience;
int empId;
public:
Employee(){}

Employee(string name,string gender,int experience, int empId):Person(name,gender)
{
this->experience=experience;
this->empId=empId;
}


};

 

Developer.cpp template

#include<iostream>
using namespace std;
#include "Employee.h"
class Developer: public Employee{
private:
string skills;
string role;

public:
Developer(){}

//fill your code

void displayDetails()
{

//fill your code


}
};

 

 

Person.h  template

#include<iostream>
using namespace std;
class Person{
protected:
string name;
string gender;
public:
Person(){}

Person(string name,string gender)
{
this->name=name;
this->gender=gender;
}


};
Write a program to display detals of the Developer using Multilevel Inheritance.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All class
names, member variable names, and function names should be the same as specified in the
problem statemen.
Consider a class named Person with the following protected member varlables.
DataType
tring
ring
Variable
name
gender
The derived class named Employee derived from Person with the following public
member varlables
Datatype
Int
Int
Variable
experience
empld
The derived class named Drveloper derived from Emolove with the following pubilic
member varlables.
Datalype
string
ering
Include a constructor with parameters passed in the same order given below
Variable
skils
role
Developeristring namestring genderint experiencejint empld.string skisstring
rolel:Employeelname.pender,experience,empld)
Include the following public member function in the Developer class
Member Function Description
old display Detals This method is used to display al the details of the developer
In the main method, read inputs from the console and access the displayDetals method by
creating the instances.
Input and Output format:
Refer sample irput and output for formatting specitcations.
(All text in bold corresponds to input and the rest corresponds to output)
Sample Input and Output 1:
Enter the name
Harry
Enter the gender
Male
Enter the experlence
Enter the employee id
Enter the technical skils of the developer
HTMLCSSwaGroovyMysQL
Enter the role of the developer
Fulhtack
Developer Details
NameHarry
Gender : Male
Experience:8years
Employee ld:5
Technical Skills: HTML.CSSJavaGroovyysq
Role : Fulstack
Sample Input and Output 2
Enter the name
Graf
Enter the gender
Female
Enter the experience
10
Enter the employee id
Enter the technical skils of the developer
HTMLCSSJwaeri
Enter the role of the developer
Frontend
Developer Detals
Name: Graff
Gender : Female
Experience: 10 years
Employee ld:2
Technical Skils: HTMLCSSJvascript
Role: Frontend
Transcribed Image Text:Write a program to display detals of the Developer using Multilevel Inheritance. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statemen. Consider a class named Person with the following protected member varlables. DataType tring ring Variable name gender The derived class named Employee derived from Person with the following public member varlables Datatype Int Int Variable experience empld The derived class named Drveloper derived from Emolove with the following pubilic member varlables. Datalype string ering Include a constructor with parameters passed in the same order given below Variable skils role Developeristring namestring genderint experiencejint empld.string skisstring rolel:Employeelname.pender,experience,empld) Include the following public member function in the Developer class Member Function Description old display Detals This method is used to display al the details of the developer In the main method, read inputs from the console and access the displayDetals method by creating the instances. Input and Output format: Refer sample irput and output for formatting specitcations. (All text in bold corresponds to input and the rest corresponds to output) Sample Input and Output 1: Enter the name Harry Enter the gender Male Enter the experlence Enter the employee id Enter the technical skils of the developer HTMLCSSwaGroovyMysQL Enter the role of the developer Fulhtack Developer Details NameHarry Gender : Male Experience:8years Employee ld:5 Technical Skills: HTML.CSSJavaGroovyysq Role : Fulstack Sample Input and Output 2 Enter the name Graf Enter the gender Female Enter the experience 10 Enter the employee id Enter the technical skils of the developer HTMLCSSJwaeri Enter the role of the developer Frontend Developer Detals Name: Graff Gender : Female Experience: 10 years Employee ld:2 Technical Skils: HTMLCSSJvascript Role: Frontend
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY