Write a program that prints the name, year of recruitment, salary and addresses of three employees by creating a class named 'Employee'. The output should be as follows: Name Robert Sam John Year of Recruitment 1994 2000 1999 Salary 100000 110000 120000 Address Walnut Street No:64 Wall Street No: 121 Afton Avenue No: 223

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
100%
I need correct and unique answer. Don't send any plagiarism otherwise I'll reduce rating. I need answer in python and Java code.
Write a program that prints the name, year of recruitment, salary and addresses of
three employees by creating a class named 'Employee'. The output should be as
follows:
Name
Robert
Sam
John
Year of Recruitment
1994
2000
1999
Salary
100000
110000
120000
Address
Walnut Street No:64
Wall Street No: 121
Afton Avenue No: 223
Transcribed Image Text:Write a program that prints the name, year of recruitment, salary and addresses of three employees by creating a class named 'Employee'. The output should be as follows: Name Robert Sam John Year of Recruitment 1994 2000 1999 Salary 100000 110000 120000 Address Walnut Street No:64 Wall Street No: 121 Afton Avenue No: 223
Expert Solution
steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
void method
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT