Results 1 to 8 of 8
- 10-28-2010, 07:23 AM #1
Member
- Join Date
- Sep 2010
- Location
- Singapore
- Posts
- 13
- Rep Power
- 0
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
- 10-28-2010, 10:58 AM #2
- 10-28-2010, 09:00 PM #3
Member
- Join Date
- Sep 2010
- Location
- Singapore
- Posts
- 13
- Rep Power
- 0
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?
- 10-28-2010, 09:16 PM #4
Senior Member
- Join Date
- May 2010
- Posts
- 436
- Rep Power
- 4
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.
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.AND I NEED TO FINISH BY TOMORROW LUNCH :( plz help
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.
- 11-01-2010, 05:57 PM #5
Member
- Join Date
- Sep 2010
- Location
- Singapore
- Posts
- 13
- Rep Power
- 0
Ok ive switched to netbeans
-
- 11-01-2010, 06:53 PM #7
Member
- Join Date
- Sep 2010
- Location
- Singapore
- Posts
- 13
- Rep Power
- 0
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
- 11-01-2010, 06:54 PM #8
Member
- Join Date
- Sep 2010
- Location
- Singapore
- Posts
- 13
- Rep Power
- 0
Similar Threads
-
Ide(Jcreator) and jdk
By dangr in forum New To JavaReplies: 0Last Post: 01-12-2010, 08:02 AM -
Making and using packages with jcreator
By Addez in forum New To JavaReplies: 2Last Post: 08-31-2009, 04:12 AM -
jcreator
By arshesander in forum New To JavaReplies: 1Last Post: 08-03-2009, 11:31 AM -
Making an Applet use a MySQL Database
By Bomber_Will in forum Java AppletsReplies: 5Last Post: 11-30-2008, 04:28 PM -
jcreator
By nikhil_solanki015 in forum JCreatorReplies: 2Last Post: 10-28-2008, 07:04 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks