JAVA PROGRAMMING HOMEWORK HELP!
I'm a meteorology major in a csc 212 class, and I have absolutely no clue how to attack these vague directions. anyone help me build this program pleaseeeee!
Write a Java program that reads in a file containing data about cars and builds a car database. The input file can be found here. Each line of file input should be used to create a Car object. Use an array of Car objects in the CarDatabase class to access and print various information about the cars. Finally, your program should also use a command interpreter in the Main class that allows the user to issue commands and retrieve the data as shown in the example (see below).
Make sure that your program uses a Java package called ‘csc212hw4’. Your program should consist of the following classes.
Read input from the user to get size of the array, input file name, and commands.
Process commands as shown in the example.
This should contain a private array of Car objects
Write a constructor that accepts an integer to set the size of the array.
Write the following public methods
isFull() - returns a boolean value indicating if array is full.
readFile() - accepts a string parameter (the file name) and uses a scanner to read in all the lines, create Car objects, and put them in the array.
displayMake() - accepts a string parameter and prints all cars with that make.
mpgRange() - accepts two double parameters and prints all the cars who's mpg falls in that range.
weightRange() - like mpg, but for weight.
displayAll() - display all the cars in the database.
Should have the following public variables
A constructor method that accepts parameters to initialize all the variables
A toString() method that returns all the variables with a label (as shown in the example)
Re: JAVA PROGRAMMING HOMEWORK HELP!