首页 > > 详细

Java辅导汽车管理系统Java Assignment讲解留学生Java编程

Introduction
Requirement
Assignment 3 - Car Dealer Database
SUBMISSION DEADLINE: JAN 23 2017 at 16:00
Important Notice: Plagiarism
This assessment forms part of your degree assessment. It must be done entirely on your own from start
to finish:
• You must not collaborate or work with other students at any stage
• You must not send or show other students your answers
• You must not ask other students for help, or ask to see their answers. As well as being against
regulations, this is unfair to the other student concerned, since it may lead to them being
accused of plagiarism
• You must not seek help from friends, relatives, online discussion groups other than the Moodle
forum for INST1002
• The lab teaching assistants can give advice in terms of clarifying the task, but cannot directly
assist you in answering the question
• If you think any of the description of the task below is ambiguous or unclear, please post to the
Moodle forum, explaining what your concerns are, or raise it in person with your lecturer,
Kosmas Kosmopoulos, or a INST1002 lab demonstrator.
• If you are unsure of any of the above points, please post your concern to the Moodle forum.
Finally, if there is any reason you do not think you can complete this assessment in the allotted time,
you should make a formal request for an extension with your home department.
Assessment details:
The final piece of coursework is worth 50% of the overall module mark.
Write a program that stores details of cars for a Car Dealer. Your program should be able to perform. as
many of the tasks bellow as possible. Your program will be marked out of 95. Extra 5 marks will be
allocated for the efficiency and quality of your code and the program design.
Your main program should be named CarDatabase.java and the class file that defines the cars should be
named Cars.java If you need to use other class files you may name them as you wish.
Unlike the previous assessment, this is NOT carried out using TestDome, but should be submitted via
the Moodle submission link
Marking Scheme and program specification:
Grade: 0-44
Your program does not compile or does not adhere to the assignment specification.
Grade: 45-54
Your program compiles, runs and has at least the following:
• class definition
• instance variables
• constructors
• comments (though may not be very useful),
• indentation (though may be inconsistently applied)
Description: Write a new class of objects to represent car entries. A database entry consists of (for
example) the Manufacturer, Model, Registration Number, Price and Colour. Your class definition should
include an appropriate constructor method. A single entry can be entered by the user typing the details
in and the entry can be printed out.
Grade: 55-64
Your program compiles, runs and has at least the following:
• all the above
• arrays of objects
• comments useful, good indentation, good use of variable names
• methods other than constructor defined in the class
Description: Modify your program above to store an array of car objects. Each entry in the array will
be a single object describing an item. Add a menu of options including
1. input a new entry from a keyboard
2. print all the entries so far
3. Quit
Grade: 65-74:
Your program compiles, runs and has at least the following:
• all the above
• appropriate use of methods within class, each commented
• searching method
Description: Your car database should now provide a search method that allows the details of a given
car item to be looked up in the array, for example by entering a car’s registration number. This should
be an extra menu option. It should be part of a new “database” class rather than being part of the car
class previously defined, ie it should be part of the class that instantiates the array of objects.
Grade: 75-84:
• all above
• objects can be updated with new values
• method overloading
• sorting method
Description: Your program should provide menu options to print to the screen the database as a table,
sorted by car manufacturer (alphabetically).
Grade: 85-95
• all above
• something special – extra functionality etc.
‘Free’ tasks
Students may also implement additional features if they think that they are useful. Additional features
should not substantially change the behaviour of existing program features, but should add further
functionality

 

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!