TAA Project


The purpose of this project is to create a program that will look and feel something like a database interface, but instead you'll write code to access a standard file.

A small business has brought you in as an "odd-jobs" programmer. Your current project is to write a simple program to track employee's hours. All your boss wants is a program that will let him enter an employee's name and the number of hours he or she worked.

You should store the employee's records in arrays, and that you'll never have more than 20 employees.

The program should have at least two text boxes (for entering the name and hours) and four buttons: Add (which will add the currently-entered record into the arrays, at the next empty position), Save (which will save all the records into the data file), Load (which will load all the records from the data file into your arrays), and Display Report (which will pull up a second form that contains only a list box, and where the list box displays all the records).

Saving and loading should overwrite all the records, and you should only have one data file. You can use either sequential or random access for the data file; your choice.

Extra Improvements:

  1. After the user clicks Add, clear the text boxes.
  2. Add a label, which displays the number of used records in the arrays.
  3. Add an extra piece of information: Hourly Wage. This is the amount that this person is paid per hour. This should be saved and loaded as well.
  4. Calculate the amount of money owed to the employee, and display it in a label. Make sure this is saved to and loaded from the file, but do not let the user change this value from the form.

Visual Basic by Example is hosted by GeoCities
1