Results 1 to 8 of 8
  1. #1
    mcnam4119 is offline Member
    Join Date
    Sep 2010
    Location
    Singapore
    Posts
    13
    Rep Power
    0

    Exclamation Making a Car Database on Jcreator

    I need to make a car database in this format on jcreator:
    Menu
    1)Add Car
    2)Edit Car
    3)Delete Car
    4)View Car
    5)Exit

    and for the car specs i only need name model and colour (or color if your american)
    the problem I have is I HAVE NO CLUE WHERE TO START AND I NEED TO FINISH BY TOMORROW LUNCH :( plz help

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    5

    Default

    Quote Originally Posted by mcnam4119 View Post
    I need to make a car database in this format on jcreator

    what do you mean exactly with "car database"?

  3. #3
    mcnam4119 is offline Member
    Join Date
    Sep 2010
    Location
    Singapore
    Posts
    13
    Rep Power
    0

    Post What do you mean really with car database?

    I mean that, when I print the code I have it should come up with a menu where u can choose 1 of the options i listed and you can add cars to the database, edit them (change colour etc.) and delete them and when you want to view what is there you can click view car and it will show the table of all the cars i the database,does this make more sense?

  4. #4
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Posts
    436
    Rep Power
    4

    Default

    Quote Originally Posted by mcnam4119 View Post
    I need to make a car database in this format on jcreator...

    the problem I have is I HAVE NO CLUE WHERE TO START
    Our ability to help in this situation is somewhat limited as we cannot replace the tutorials and your text, and about all we can do is advise you to go to the tutorials where you can read up to figure out how to do this. Fortunately or unfortunately, there are no short cuts for this.


    AND I NEED TO FINISH BY TOMORROW LUNCH :( plz help
    We'll help you if we can, but just as long as you realize that no one here is going to do this assignment for you.

    I suggest you do this:
    1) break your problem up into small steps and try to do as much as you can to solve each small step.
    2) Then if you run into a problem with a bit of code not working or with a specific concept, come on back and ask your question, and we'll probably be able to give you better help.

    Que tenga buena suerte.
    Last edited by curmudgeon; 10-28-2010 at 11:13 PM.

  5. #5
    mcnam4119 is offline Member
    Join Date
    Sep 2010
    Location
    Singapore
    Posts
    13
    Rep Power
    0

    Default

    Ok ive switched to netbeans

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

  7. #7
    mcnam4119 is offline Member
    Join Date
    Sep 2010
    Location
    Singapore
    Posts
    13
    Rep Power
    0

    Default

    Ok so I am currently working on the add car part of the code where I am supposed to have a preset array that already has up to 5 cars in it and I can add more from pressin add car on the menu the code I am trying to use I have here:

    import java.io.*;
    public class CarSaleArray {

    public static void main(String[] args) throws IOException{
    BufferedReader type = new BufferedReader (new InputStreamReader(System.in));

    System.out.println("Enter size of array?");
    int num= Integer.parseInt(type.readLine());//The number typed sets the size of the array
    String carArray[]=new String[num];//initializes an array

    for(int x=0;x<num;x++)
    {
    System.out.println("Enter Car Model?");//ask question
    String car= type.readLine();//stores name in per variable
    carArray[x]=car;//stores name into array
    }

    for(int x=0;x<num;x++)
    {
    System.out.println("carArray["+x+"]="+carArray[x]);
    }
    }
    }
    This will not work because all it does is ask you to set an array size and then ask for a string variable which it will then print out, what I want it to do is to be able to add a car to a table(array) that already has up to 5 cars in it and that it stays there until deleted etc. but because its a car I must have 3 things Colour, model, and price

  8. #8
    mcnam4119 is offline Member
    Join Date
    Sep 2010
    Location
    Singapore
    Posts
    13
    Rep Power
    0

    Default

    oh and im doing this code on jcreator cus i can work out how to use netbeans l8r

Similar Threads

  1. Ide(Jcreator) and jdk
    By dangr in forum New To Java
    Replies: 0
    Last Post: 01-12-2010, 08:02 AM
  2. Making and using packages with jcreator
    By Addez in forum New To Java
    Replies: 2
    Last Post: 08-31-2009, 04:12 AM
  3. jcreator
    By arshesander in forum New To Java
    Replies: 1
    Last Post: 08-03-2009, 11:31 AM
  4. Making an Applet use a MySQL Database
    By Bomber_Will in forum Java Applets
    Replies: 5
    Last Post: 11-30-2008, 04:28 PM
  5. jcreator
    By nikhil_solanki015 in forum JCreator
    Replies: 2
    Last Post: 10-28-2008, 07:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •