nter Employee Id : 101 Enter Enployee Id : nter Employee Name : John Hathew Enter Employee Nane ter Employee Age : 23 Enter Enployee Age: nter Employee Salary : 6787.89 sils of 2 Employee Enter Enployee Salar

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
Expected Output:
A) Success Case:
B) Failure Case:
Enter details of 1 Employee
Enter Employee Id : 11
Enter details of 1 Employee
Enter Employee Id : 101
Enter Employee Name : John Mathew
Enter Enployee Name : KS
Enter Employee Age : 23
Enter Enployee Age : 34
Enter Employee Salary : 6787.89
Enter Employee Salary : 2345.6
Enter details of 2 Enployee
Enter Employee Id : 201
Enter details of 2 Employee
Enter Enployee Id : 12
Enter Employee Name : Harry Bajwa
Enter Employee Age : 34
Enter Enployee Name : WR
Enter Employee Salary : 8765.43
Enter details of 3 Employee
Enter Employee Id : 301
Enter Enployee Age : 35
Enter Employee Salary : 5678.99
Enter Employee Name : Sana Murshid
Enter details of 3 Employee
Enter Enployee Id : 13
Enter Employee Age : 25
Enter Employee Salary : 6784.34
Details of Employees (Original Data)
Id
Enter Employee Name : RT
Name
Age
Salary
Enter Enployee Age : 45
101
201
301
John Mathew
23
6787.89
Наггy Bajна
Sana Murshid
34
8765.43
Enter Enployee Salary : 8974.35
25
6784.34
Details of Employees (Original Data)
Id
Enter the id of the enployee you wish to see the infornation: 201
Name
Age
Salary
The information of the concerned employee is:
11
12
13
WS
34
2345.6
WR
35
5678.99
Employee Name: Harry Bajwa
Employee Id: 201
Employee Age: 34
Employee Salary: 8765.43
RT
45
8974.35
Enter the id of the employee you wish to see the information: 10
The employee 10 is not found
Transcribed Image Text:Expected Output: A) Success Case: B) Failure Case: Enter details of 1 Employee Enter Employee Id : 11 Enter details of 1 Employee Enter Employee Id : 101 Enter Employee Name : John Mathew Enter Enployee Name : KS Enter Employee Age : 23 Enter Enployee Age : 34 Enter Employee Salary : 6787.89 Enter Employee Salary : 2345.6 Enter details of 2 Enployee Enter Employee Id : 201 Enter details of 2 Employee Enter Enployee Id : 12 Enter Employee Name : Harry Bajwa Enter Employee Age : 34 Enter Enployee Name : WR Enter Employee Salary : 8765.43 Enter details of 3 Employee Enter Employee Id : 301 Enter Enployee Age : 35 Enter Employee Salary : 5678.99 Enter Employee Name : Sana Murshid Enter details of 3 Employee Enter Enployee Id : 13 Enter Employee Age : 25 Enter Employee Salary : 6784.34 Details of Employees (Original Data) Id Enter Employee Name : RT Name Age Salary Enter Enployee Age : 45 101 201 301 John Mathew 23 6787.89 Наггy Bajна Sana Murshid 34 8765.43 Enter Enployee Salary : 8974.35 25 6784.34 Details of Employees (Original Data) Id Enter the id of the enployee you wish to see the infornation: 201 Name Age Salary The information of the concerned employee is: 11 12 13 WS 34 2345.6 WR 35 5678.99 Employee Name: Harry Bajwa Employee Id: 201 Employee Age: 34 Employee Salary: 8765.43 RT 45 8974.35 Enter the id of the employee you wish to see the information: 10 The employee 10 is not found
Setting up the C++ Project:
1. If you have chosen to work in Dev C++, you are required to save the file as ICE10_firstname.cpp.
2. If you are using Netbeans /CLion for your application, create a new C++ application project, name it
as ICE10_Firstname.
Failure to follow this naming format makes it more difficult for me to download and grade your solution,
so attention to this detail is appreciated.
Program Requirements:
The aim of this ICE is to create a simple C++ application in selected IDE. This exercise will bring your
understanding of arrays from sample codes to practice. In this program, you will use concepts of classes
and objects including accessors and mutators along with arrays.
Please make sure that you are using C++ Coding Standards for naming of variables/ constants.
Arrays and Classes and Objects
Create a class Employee having private data members as Id(int), Name(string), Age(int) and Salary(float).
Include accessor PutData() to display the details of an employee and mutator GetData() to take in the inputs
from the user. The name field of employee should have capacity to hold spaces between words.
Create an array of employee objects capable of holding data for three employees. Use symbolic constant to
represent the number of objects.
Declare a global variable empld. Ask the user to input the value of employee id whose information it wants
to see. Include a function ShowEmployeeValues which will display the information of only that employee
whose id matches with empld(supplied by the user). If the employee id is not present in the employee
array, it should send an appropriate error message.
Transcribed Image Text:Setting up the C++ Project: 1. If you have chosen to work in Dev C++, you are required to save the file as ICE10_firstname.cpp. 2. If you are using Netbeans /CLion for your application, create a new C++ application project, name it as ICE10_Firstname. Failure to follow this naming format makes it more difficult for me to download and grade your solution, so attention to this detail is appreciated. Program Requirements: The aim of this ICE is to create a simple C++ application in selected IDE. This exercise will bring your understanding of arrays from sample codes to practice. In this program, you will use concepts of classes and objects including accessors and mutators along with arrays. Please make sure that you are using C++ Coding Standards for naming of variables/ constants. Arrays and Classes and Objects Create a class Employee having private data members as Id(int), Name(string), Age(int) and Salary(float). Include accessor PutData() to display the details of an employee and mutator GetData() to take in the inputs from the user. The name field of employee should have capacity to hold spaces between words. Create an array of employee objects capable of holding data for three employees. Use symbolic constant to represent the number of objects. Declare a global variable empld. Ask the user to input the value of employee id whose information it wants to see. Include a function ShowEmployeeValues which will display the information of only that employee whose id matches with empld(supplied by the user). If the employee id is not present in the employee array, it should send an appropriate error message.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 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