java



Q Following is a small java assignment please do it in java (if not too hard also in java script)



Read the following data from a file:



Executive,Mr,Moshe,Roth,250000

Supervisor,Mr,Chaim,Stark,150000

Supervisor,Mr,Moshe,Spira,160000

Manager,Mr,Yehuda,Gold,120000

Manager,Mrs,Miriam,Weiss,120000

Employee,Mr,Shlomo,Green,65000

Employee,Mrs,Ester,Silver,75000

Employee,Mr,Yakov,Weiser,70000



Put all the records in to appropriate objects

Put all the objects in to a data structure

Loop through the data structure and print out (on screen)

Title,First Name, Last Name, Bonus (in currency format)

The bonus being the following rules:

Executive – 20% of salary

Supervisor – 10% of salary

Manager – 8% of salary

Employee – 5% of salary

Ex. Mr,Moshe,Roth,$50,000.00