Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Design and code a small Object Database System which is to hold a number of Mobile Smart Phone details.
Here is a simple inheritance diagram of the classes and interface required.
The OSInterface is to contain the following: An Array of operating Systems for the phones.
This code is supplied to you as follows:
public interface OSInterface {
String [] OSName = {"Android","ProprietaryOS","AppleIOS4","BradoOS","Windows7","BadaOS","Nokia Series40","SymbianOS"};
public String[] getOSName();
}
The abstract method getOSName returns the array for use in the subclass. (Overriding)
The project file is to be named projectMobilePhone, the package is pkgMobile. The manufacturer class is to contain the following data
manufacturer, model, provider, touchscreen
The phone class is to contain the following data:
price, standByTime, talkTime, screensize, fmRadio,camera, flightmode, GPS and OS (Operating system).
The OS is to be selected from a combobox having the selections from the OS array values in the interface. Note the combobox must use the interface array as a data source, we do not wish the values to hard coded in the combobox model.
Data such as fmRadio, camera, touchscreen can be Boolean.
(CheckBoxessuggested)
A Main Mobile Phone GUI is to be designed with a menu system to enable the saving and opening of binary files (*.bin) add the file type to the application , each phone object must be populated from a separate PhoneDataForm which enables users to enter the data, it must incorporate a display area for the display of the phone data. It must also have two search options... by Operating System and by Price, the necessary Comparator classes need to constructed for this function.
The populated phone objects are to be stored in an ArrayList
Data for the phones is to be filtered off the following Web suggested page, although other sources can be used as well, if used plaese document them.
www.pricespy.co.nz under the Mobile phones.
Select and enter 6 smart phones and data for the testing of your software, from different manufacturers.
The populated phone objects are to be added to the ArrayList and then be able to be stored on file using suitable streams for binary file handling. After loading the Arraylist back in the user should be able to add further data to it and save it.
When the phone details have been entered the ability to navigate the data using the PhoneDataForm should be coded.
A free hand is given to the GUI design as long as the requirements of the assessment are complied