Let there be light.
doco
Originally posted by Donald R. Cossitt:
Let's see; the car's sugested retail is forty cents and it has a 1:2.22 chance of being safe and gets 1/7 of a mile per gallon.... My guess is that you shouldn't buy; I don't know - it's just a guess.
Why don't you try putting something together and show what you have while asking for help or ideas. I doubt anyone is going to write it for you... I don't know - it's just a guess.
First you need a means of querying your user and storing the results in a list or array which the main( String[] args ) does for you. What would be your unique identifier: Make, Model, Type? Or a composite?
Then you need to query your data file one record at a time, by Make, Model, Type?. Make your args[ i ] comparisons and print out the results.
This is an over simplification. But it is what you need to do to begin. Write the steps out in long hand first then convert your psuedo code into code.
First you need a means of querying your user and storing the results in a list or array which the main( String[] args ) does for you. What would be your unique identifier: Make, Model, Type? Or a composite?
Then you need to query your data file one record at a time, by Make, Model, Type?. Make your args[ i ] comparisons and print out the results.
This is an over simplification. But it is what you need to do to begin. Write the steps out in long hand first then convert your psuedo code into code.
Let there be light.
doco
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |