Develop auto inventory system which contains functionality

Assignment Help JAVA Programming
Reference no: EM131320970

Module Assignment: Introduction to Programming Using Java

This assignment is to provide practice using arrays and strings along with other Java programming techniques discussed so far in the course.

For this assignment, you will develop a simple auto inventory system which contains the following basic functionality:

• Read the supplied autoInventory.txt file to obtain the auto inventory with the file path supplied as the first run-time parameter.
• Displays a main menu of three selections:

? Display Inventory - Displays the inventory in a neat record-based arrangement
? Search Inventory - Starts the inventory search processing (see below)
? Exits the programming

• Processes searching the inventory

? Can search by any field but only one field at a time
? Text fields via text searches

• Searches if supplied text is in any part of the field (subset)

? Numeric (integer) fields by numeric searches (Year, Mileage, Price)

• Search if supplied number is less than, equal to, or greater than the numeric value of the inventory record field

? Searches will list complete records which match the search criteria or an appropriate message if no records matched the search criteria

• This program will only read inventory data, not create or change inventory data.

The following Java requirements for this program in addition to the above and general topics discussed so-far in the course:

• This program should be implemented in a single Java source file
• This program should be implemented with a single class
• This program should contain multiple methods with logic broken up into reasonable functional units
• Internally the inventory data must be maintained in a two-dimensional class Java array

Hints:

? Java collections can not be used.

• Read in the inventory file with a structure similar to the below:

try
{
inventoryFile = new Scanner(new File(path));
}
catch (FileNotFoundException except)
{
System.out.println("Error: Inventory read failure. Error: " +
except.getMessage());
System.exit(-1);
}

You will need the following imports:
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;

• Reduce duplication of code as much as practicable

? Reduces maintenance issues

• Do incremental development. Start off with loading and displaying the inventory then move on to searching. Do text searching first than tackle searching on the numeric fields.

• Read over the String method documentation. There are many String methods and there is a good chance there is one which can help you do what you are trying to do.

Below are some screen shots of an example implementation. You can make yours better!

See the separate demonstration showing some of the functionality expected.

Reference no: EM131320970

Questions Cloud

Write program that stores this information in a two-d array : Write a program that stores this information in a two dimensional 3 × 7 array, where each row represents a different monkey and each column represents a different day of the week.
How should volkswagen handle the emissions scandal : How should Volkswagen handle the emissions scandal in an ethical way? Discuss the related ethical issues from both consumer and brand manager perspectives
Net present value-annual pretax cost savings : CSM Machine Shop is considering a four-year project to improve its production efficiency. Buying a new machine press for $486,000 is estimated to result in $185,000 in annual pretax cost savings. The press falls in the MACRS five-year class (MACRS Ta..
Bond valuation and interest rate risk : Bond Valuation and Interest Rate Risk The Garraty Company has two bond issues outstanding. Both bonds pay $100 annual interest plus $1,000 at maturity. Bond L has a maturity of 15 years, and Bond S has a maturity of 1 year. What will be the value of ..
Develop auto inventory system which contains functionality : You will develop a simple auto inventory system which contains the following basic functionality: Read the supplied autoInventory.txt file to obtain the auto inventory with the file path supplied as the first run-time parameter.
Which variable would enter the equation first and why : If a standard or simultaneous regression analysis was conducted on these data, what is the smallest that the multiple correlation between the five predictor variables and the criterion variable could possibly be? (This one will take some thought.)
What is their yield to maturity-what is their yield to call : Yield to Maturity and Call with Semiannual Payments Thatcher Corporation's bonds will mature in 11 years. The bonds have a face value of $1,000 and an 9% coupon rate, paid semiannually. The price of the bonds is $1,050. The bonds are callable in 5 ye..
How many transistors must one fabricate : A state-of-the-art n/p/n Si transistor has a signal amplifying or electrically active p-type base layer whose volume is 1μm3 and which is doped with 1018 boron/cm3.-  How many transistors must one fabricate to assure 100 good transistors?
Expected returns and discrete distribution : Expected Returns: Discrete Distribution. The market and Stock J have the following probability distributions: Calculate the standard deviation for the market.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a program to test your class definition

Do not define an input method. The only method that can set the counter is the one that sets it to zero. Write a program to test your class definition.

  Design constraintsyour program should confirm to the

design constraintsyour program should confirm to the following constraints.nbsp it shouldinclude at least one example

  Write a program to compute the cumulative gpa

This program will compute the cumulative GPA based on user input.  This program will use dialog boxes with the JOptionPane class as well as the console to send/receive information to/from the user.

  Calculate the average number of miles you ran

What is your list length? Calculate the sum of the total miles you spent running over the 10 weeks. Calculate the average number of miles you ran. Write a search to determine whether 4 is on your list

  Write the source code for each class in a separate file

Write the source code for each class in a separate file, which must have the same name as the class name together with the extension. java. Class names commence with a capital letter

  Use data structures and algorithm to implement search engine

For the URLs in the keyword list, sort them by either the number of times the keyword appearing in the pages or the popularity of the pages.

  A program that reads a four-digit number from the keyboard

Write a program that reads a four-digit number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, the output should be 12. Hint: Break the string into characters and then convert each character to a va..

  Write an application that uses an array to store

Write an application that uses an Array to store 10 messages of type String - You will store this Array with 10 messages

  Writing an applet with graphics in this programming

writing an applet with graphics in this programming activity you will write an applet that uses graphics. you will draw

  What is the most restrictive access modifier

What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?

  What is object-oriented programming

What is object-oriented programming? What are the differences between a class and an object

  How array is declared and initialized in java

What is a Java applet - how array is declared and initialized in Java and what are the access control attributes in Java?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd