|
Having trouble with Java Project
my family has a marina and i said i can make a program to help my dad keep track of the boats and rentals etc. but the problem im having trouble im relatively new i have only been doing java for 3 weeks and its hard. My dad gave me an outline for the project. this is what i have so far.
The File menu contains two items in addition to the Exit item from the JCreator template: Open and Save. The main tab will have other tabs added later.
Step 2: Design and implement the Boat class:
The Boat class describes a boat owned by the marina. Each boat has a name, a daily rental price and is moored in a slip at the marina. The marina need to keep track of each boat's status: 0 - available, 1 - reserved and 2 - rented. Slips are numbered from 1 to 6 right now, but the owners are thinking of adding more slips as their business grows. In designing this class, consider how the class will be used within the project. Try to think of all possible instance variables and methods your class might need.
Review Topics:
Creating classes: Instance variable, Get and Set Methods
Menus
Tabbed Panes
Step 3: Design and implement the Marina class
The marina class is used to hold all the Boat objects. Since there is no imaginable limit to the number of boats the marina might one day own, the Marina class should use an ArrayList object to hold all the Boat objects. Also implement the Open and Save menu items.
Review Topics:
The ArrayList class
Object Files ... writing, reading, the Serializable interface
Using the FileDialog class.
Step 4: Design and implement the Customer and CustomerList classes.
Each Customer is a Person who wants to rent a Boat. For identification purposes, each Customer is assigned a Customer number. This String value is a 6-digit number generated sequentially. That is, the first customer will be 000001, the second 000002, and so on. The Customer class must keep track of the Customer's Boat choices (past and present).
The CustomerList class is a dynamic list of Customer objects. Customers come and go, so this class must have functionality that allows for the addition of new customers, deletion of customers and the editing of customer information, including changing their Boat rental options. Create methods within the CustomerList class that will read data from and write data to a data file.
Add a new tab to the GUI allowing the user to enter a customer's first and last names, add these Customer objects to the CustomerList and save the Customer information on data files.
so wat do you guys think? is this possible i would prefer if you keep the code as simple as possible cause im new and i wont understand if you get all fancy.
thanks in advance!!
|