I am suppose to be making a program which inputs an employees name(first and last) and their quarterly sales. I am then suppose to output a table of all the employees and the quarterly sales, as well as their total sales. I am suppose to create an array of objects to store each employee as well as their quarterly sales. However i have absolutly no idea how to use an array of objects so i am lost.
right now i have a class called inputGUI which input the names and quarterly sales and a class called Employee which is suppose to do calculations (such as finding the employee with the highest and lowest total sales) with the array after i create it (which i dont know how to do). Im completely lost right now so any help would be very much appreciated.
Hockeyfreak889
0
Light Poster
Recommended Answers
Jump to PostCheck out "ArrayList", it resizes itself as necessary. If you choose to use it, you would create an "ArrayList" of your class (ex: "Employee").
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.