Java program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Java program

Can anyone help me please , I have been trying to solve this question but am still struggling with syntax errors. And I have to submit it next week. Jeff runs a local retail store in your neighbourhood. He has contracted you to create an interactive application that will assist him in increasing staff salaries. Create a class named Details that will contain get and set methods for an employee ID number, first name, surname and salary. Include a method called getUpdatedSalary() that will increase the staff members salary by 10%. In your main class include a static method named printDetails() that will produce an employee details report,alsoincludeastaticmethodnamedsalaryDeductions()thatwilldisplaytheemployee deductions report if required. Notes — Below are the deduction percentages: Deduction Percentage Tax 18% Medical 12.5% Car Allowance 8% UIF 2% Hint: You may make use of your own initiative to improve the application and how it works. Classes | Methods | Decision Structures | Number Format, etc https://code.sololearn.com/cJgMQLvb6Avn/?ref=app https://code.sololearn.com/c2TD7Mp5V7Gi/?ref=app

10th Mar 2020, 3:31 PM
Misha
Misha  - avatar
2 Answers
0
copy source codes to one playground on Sololearn, here it is possible and we can easy run it EDIT: first 6 errors, in printDetails() you need to address properties of Details class. You have instance of this class in variable employee. - use object employee to use its properties. update your source code on sololearn
11th Mar 2020, 10:48 AM
zemiak
0
thx i will do that
11th Mar 2020, 11:15 AM
Misha
Misha  - avatar