Write a class that implements Employee class that is described in UML diagram given below. The method “ raiseSalary(percent) " increases the salary by the given percentage. Write a test program that will generate at least 3 accounts and test each method that you write. Employee -id:int -firstName:String -lastName:String -salary:int +Employee(id:int,firstName:String, lastName:String,salary:int) +getID():int +getFirstName():String +getLastName(():String +getName():String +getSalary():int +setSalary(salary:int):void +getAnnualSalary():int +raiseSalary(int percent):int +toString():String. "firstName Llastname" salary * 12 Increase the salary by the percent and return the new salary "Employee[id=?,name=firstName lastname,salary=?]"
Write a class that implements Employee class that is described in UML diagram given below. The method “ raiseSalary(percent) " increases the salary by the given percentage. Write a test program that will generate at least 3 accounts and test each method that you write. Employee -id:int -firstName:String -lastName:String -salary:int +Employee(id:int,firstName:String, lastName:String,salary:int) +getID():int +getFirstName():String +getLastName(():String +getName():String +getSalary():int +setSalary(salary:int):void +getAnnualSalary():int +raiseSalary(int percent):int +toString():String. "firstName Llastname" salary * 12 Increase the salary by the percent and return the new salary "Employee[id=?,name=firstName lastname,salary=?]"
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
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage