someone explain this please

+1 Anthony St John · August 3, 2014
Hi i have a problem for an assignment im doing for procedural programming class but the problem i was given doesn't make sense to me, the problem is shown below: 

Triad Cleaning Services Limited (TCS) pays an annual bonus to its employees. The bonus is based on the number of years
the employee has been with the company. Employees working at the company for less than 5 years receive a bonus equal
to 3% percent of their annual salary; between 5 and 10 years receive a bonus equal to 4% of their annual salary; all
others receive a bonus equal to 5% of their annual salary.
Presently, TCS undertakes this annual endeavour by manually poring through Employee paper based files and
meticulously documenting each employee’s years of service before passing it to the accounts department. TCS’ employee
base has been expanding yearly and this manual process is fast becoming tedious. In light of the growing employee base,
the accounts department has requested a computerized system that would store all employee data and allow it to generate
the bonus calculations automatically.

The proposed solution must:
1. Store all employee data. 
Employee data would consist of Employee ID, Name, Date of Hire, Basic Monthly Salary
and Department. (NOTE: This can be a pre-initialized set of values in an array)

2. Print End of Year Payslip inclusive of Bonus Paid for each Employee. [See Sample Below.]
Name: Jack Sparrow
Department: Maintenance
Pay Period: December 2014
Basic Pay: $2,300.00
Annual Bonus: $ 828.00

3. Print reports as follows:
a. # of Employees in each bonus category (i.e. less than 5 years, between 5 and 10 years, over ten years’ service).
b. Total $ value paid in each bonus category
c. Total $ value paid in Annual Bonuses

#1 is no issue, #2 is kinda tricky cuz i'm having trouble wit the annual bonus part but #3 is the most problematic for me. I can make the arrays to store the information but am not sure as how to do what #3 is asking with with arrays. Does this question make sense to anyone or even seems solvable, side note im new to programming not very experienced. Any clarification will be greatly appreciated.

Post a Reply


- page 2
Oldest  Newest  Rating
+1 William Frost · August 5, 2014
no set?
0 Abdullah Nauman · August 5, 2014
Wow Pere maybe you should make some tutorials. you are a good teacher. 
+1 Pere Garau Burguera · August 5, 2014
I don't think setters are needed here, but you can put them if you want.
+1 William Frost · August 5, 2014
Yep, you right,you don't need setters here. I just uselly see setters so not to see bother me a little :)
0 Pere Garau Burguera · August 5, 2014
@Abdullah. Thanks! :) Well, I have experience in Java only haha. So I could do only Java tutorials. Also, although I really like programming, it's not my unique world, it's not what I'm focused exclusively. There are people here that program every day, because they work or study about it. In my case, it's just a little part of what I do, so lots of people here know more than me and can give better advises.
+2 William Frost · August 5, 2014
@Pere Programming is about create new things. Programmign is art :)
  • 1
  • 2

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator