How many files and classes in JAVA
Posted on 2006-11-30
I wanted to create a program in which i can read off a data file filled with employee data.
A major problem which i am facing is how many java files i have to create and how many classes and where to put what.
Ok this is what i want to create.
There are three types of employee Full time, Part time, and Commissioned each of them are assigned a work ID
the full time work 40 hrs per week whereas part time work depending on number of hours per week and are paid according to that.
the commissioned people have no number of hours but earn a basic wage of 1,200 and depending on number of sales either recieve 10% or if more than 100 then recieve 15%
Each employee is also assigned a level (i.e. according to which they are paid - whereas 1 is the lowest and 5 is the highest)
Now the program has to output data from the file showing in the right format.
and i also want to write back to the file in the correct format as shown below
FT, Jame Allison, 102384, 2, 2600 - this one is the salary they get.
PT, Hamed Jane, 103848, 10.5 - this one has the number of hours worked per week
CO, Jamie Jam, 283874, 4840 - this one has the salary including the commission
Any comments are welcomed