Somethin' 'bout Linked List in Java


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Somethin' 'bout Linked List in Java

  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Somethin' 'bout Linked List in Java

    i have an assignment which i wanna ask someone to be able to help me.Thanks beforehand.

    -----------------------------------------------------------------------
    Question1: Define a class called ParkingNode that has the following properties:
    -CarPlateno of String type
    -Hours of parking
    -Parking rate per hour depends on seasonal or not type of car
    -Status which will indicate whether the car belongs to seasonal parking or not
    -Next pointer which referencing to the next car in the list
    -Include appropriate accessors, mutators and constructor(s) as well as a method to change the carís information.
    -Include a method DisplayStatus to display Season parking status for car owner with status of 'S' otherwise display Daily rate parking

    Question2: Define a class called Constructions that has the following properties:
    -A reference to the first ParkingNode called start.
    -Include an appropriate constructor that will initialize the start member to null. (i.e this means parking with currently no cars available).
    -Include a method that will allow a new car information to be included into the system.
    -Include a method to search for a car parking information.
    -Include a method to increase the seasonal parking rate by 10%
    -Include a method to display all car details that are currently still parking.
    -Include a method to find the total rental cost for all the cars belongs to seasonal parking status.
    -Include a method to find the maximum total rental cost paid on the parking.
    -Include one more method that either involved calculation, or data manipulation.

    Question3: Define a main menu program that will allow all the parking information to be manipulated.

    *Take Note: - No need GUI
    - Use the singly Linked list, don't use the pre-define Java.util.LinkedList class
    - no static structure data structures such as Object arrays should be used

    --------------------------------------------------------------------------

  2. #2
    Join Date
    Aug 2003
    Posts
    313
    This assignment seems pretty straight-forward, is there a particular part that you are stuck on?
    ~evlich

Similar Threads

  1. Replies: 0
    Last Post: 12-06-2005, 01:07 AM
  2. Replies: 1
    Last Post: 12-01-2005, 12:40 PM
  3. Replies: 1
    Last Post: 12-01-2005, 11:57 AM
  4. Has Sun Given Up on the Desktop?
    By Lori Piquet in forum Talk to the Editors
    Replies: 114
    Last Post: 10-10-2002, 07:01 AM
  5. java list pointers - need help
    By abs in forum Java
    Replies: 0
    Last Post: 09-28-2000, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center