Question: Develop a java program that models the class diagram that is shown below. Create 2 Author objects and prompt the user to enter their data.
Develop a java program that models the class diagram that is shown below. Create Author objects and prompt the user to enter their data. Please follow the notes below:
The person class must be abstract and the methods inside of it
printinfo: is a method that is called to print all authors information.
calculateAge: is a method that calculates age for authors.
calculateProfit: a method that calculates the profit an author receives by multiplying number of sold books in payPerHour, with a bonus added.
CompareTo: receives an author object and is used to compare between two authors based on their calculated profit, your program must display the appropriate message accordingly.
tablePerson
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
