I would like to ask for suggestions.
In our class in Visual Basic, we are required to turn in a payroll system with time monitoring. And I have prepared already the GUI interface of my system. My question is what kind of collection of data should I use, considering the employee population of 30 (that’s what our instructor have told us.)
Should I use:
-
Arrays to store them like every field (employee number, employee last name, etc.) has its own array.
-
Sequential files for me to store them in a text file (and if in the text file, could I still retrieve the records inside that text file.)
-
A Database.
I need suggestions on what should I choose.
Arrays would be OK as they’re easy to implement for the size of your project. You can create a class for
Employersand define an array ofEmployersto store their information in your application.If you want to use files to save those data to disk, consider using the in-built .NET XML serializer.
Finally you can use DBs to store larger amounts of data but again for only 30 employers, you won’t need a database.