Coursework 2
Spring Semester 2011/2012
Assignment
This assignment will be marked out of 100 and carries 70% of the overall module weighting. (The first part of the coursework carried the remaining 30%.) Your .java files and report for this part must be uploaded and submitted by 5pm on Friday of Week 12. The assignment must be carried out individually so you must not obtain help from anyone other than the module teaching staff. You must not copy code from any source apart from the module core text and the module materials. Collusion, plagiarism (unreferenced copying) and other forms of cheating constitute Academic Misconduct, which can lead to failure of the module and suspension.
Aim
The aim of this assignment is to add a class to the project that you developed for the first part of the coursework to make a graphical user interface (GUI) for a system that stores details of cars in your car company. The class will contain a main method and will be tested using the command prompt. A learning aid about the command prompt is linked from the main index page of the Learning Materials. You will also need to write a report about your program.
Deliverables
Create a new class within the project called CarCompany. When you are ready to submit your solution, upload your CarCompany.java file, together with the Car.java, CarToRent.java and CarToSell.java files from the first part of the coursework (not any other files from the project) together with your report in Microsoft Word format. Your report should be no more than 1000 words in length.
Program (60 marks)
An example GUI is shown below:
[pic]
Your GUI should contain the same components but you are free to use a different layout if you feel that it improves the aesthetics, ease of use etc. The CarCompany class should store an array list (not an array) of type Car to hold the cars to rent and the cars to sell. There should be text