Create two classes manager and employee which store (code, name, salary, department, and city).find: A-Read information for the two classes objects? B-Display the greater salary for both manager and employee (using friend function)? Write main program to test 100 manager and 100 employee?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question
Please solve quickly, material software techniques
Q2: Create two classes manager and employee which store (code, name, salary,
department, and city),find:
A-Read information for the two classes objects?
B-Display the greater salary for both manager and employee
(using friend function)?
Write main program to test 100 manager and 100 employee?
Transcribed Image Text:Q2: Create two classes manager and employee which store (code, name, salary, department, and city),find: A-Read information for the two classes objects? B-Display the greater salary for both manager and employee (using friend function)? Write main program to test 100 manager and 100 employee?
Expert Solution
steps

Step by step

Solved in 4 steps with 11 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning