Be the first to like this
The Driving Academy Program
The purpose of this lab is to give you a chance to use some of the data stream tools we have been discussing in a simple application. The assignment is to write a driving academy application that allows a user to manipulate the records of students of a driving academy.
Your program will present a GUI interface which allows the user to specify student id, student name, and instructor name. It also allows the user to record grades for the midterm, final, and driving test. It displays the current overall average grade for the student. It provides a place for instructor comments to be entered and displayed. Finally, it provides buttons that permit student records to be added, fetched, updated, and deleted. There is also a button to reset the fields of the GUI to their initial condition, and there is a place where the status of each requested operation is displayed. The GUI for this program is displayed below.
You will be given the graphical user interface class for this assignment. Your job is to add the necessary event handling and data management classes to make this application work and meet the requirements as detailed below. You are NOT allowed to change the GUI.
Required program elements:
Only the 5 buttons generate events. No other GUI component generates any events.
You MUST use a single named inner class as the event handler class and register a single object of this class with the 5 buttons.
You must have a separate class which manages the student record data. You will have three classes in your application: the user interface class (including its event handling inner class), the student data manager class, and the student record class that is used to consolidate all information about a student. The user interface class creates ONE instance of the student data manager in its constructor and stores it in a member variable to be used in the event handler inner class. Objects of the student record class are used to pass student information between the GUI event handler and the data manager. Student record objects are also written into files and read from files by the data manager.