|
-
URGENT HELP NEEDED
HI MY NAME IS ADIL AND I WAS WONDERING IF YOU COULD HELP ME WITH THE
> FOLLOWING TASKS AND THAT YOU COULD EMAIL ME TH ANSWERS TO
>
> adn1@dcs.qmw.ac.uk
>
> A class called Vehicle is required by a programmer who is writing
> software for a car dealer. An object of the class Vehicle will
> consist of a registration number, the make of the vehicle, the
> year of manufacture and the current value of the vehicle.
>
> Methods should be provided to read each of these values from an object.
> There should also be a method which accepts a year as input, and returns
> the age of the vehicle.
>
> First, design and code the class Vehicle.
>
> Second, design and code a subclass called SecondHand Vehicle.
> This subclass should have an attribute (and method) that keeps track
> of the number of owners it has had. In this method, override
> the method that returns age, so that it returns the average
> amount of time it has served with each owner.
>
> Third, write a menu-driven program that offers the following options:
> 1. Add a vehicle
> 2. display a list of vehicle details, including age/owners.
> 3. delete a vehicle
> 4. quit
>
> When you add a vehicle you should let the user decide whether it
> is second hand or not.
>
> i would be really grateful if you could help me answer this and return
> it to me by THURSDAY the 15th of FEBRUARY.
>
> THANK YOU very much
>
> ADIL
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks