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

  Tic-tac-toe game assignment

Assignment 1(Java): Tic-Tac-Toe Game (Assignment 1 is attached),  Use the concepts and scenario from Assignment 1 and continue with the tic-tac-toe game design and development.  Section 1: Java Program File, The following method, numPaths, is suppos..

  Define a subclass of tournaments called collegegames

Define a subclass of Tournaments called CollegeGames. The subclass should include an additional member having type String and visibility public.

  Write a generic linked list tree

Write a generic linked list tree and a generic linked list binary search tree class that inherits from your generic linked tree class

  Produce a java implementation of the gui

For your Assignment 2 Part 1 submission you are required to produce a Java implementation of the GUI for the Agriculture image viewer component of your overall Agriculture File Storing and Management (FSM) System.

  How to detect the correct ip address and run it locally

When you compile the two modules, with disabling the package statement, it runs on one single machine, that's running the server

  Development of an automated atm machine using java

Development of an Automated ATM Machine using Java - The ATM application stack shall be loaded to a fully-equipped ATM machine with complete CPU power, chip card reader, secure crypto-processor, display monitor, function keys, in-built printer and ..

  Create your own green color for the leaves

Create your own green color for the leaves and display a solid green ellipse filled with your green color whose center is at the beginning of the drag and put a brown rectangle below it as the trunk of the tree.

  Draw the result of taking the tree in the diagram

Draw the result of taking the tree in the diagram and deleting the root three times using the deletion algorithm from lecture and the web

  Was the code does syntactically right

Access the array 4 Java program. Code, compile, and run the program. There are four lines of code marked (1)..(4) that you must explain after analyzing the code, running the program, and examining the output.

  Modify the java application using java netbeans and ide

Modify the Java application using Java NetBeans IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales.

  Where the computer stores the list of exceptions

The call stack is where the computer stores the list of exceptions. Overloaded methods have the same name and parameter lists

  How both the time and space complexity change

Write the java code that implements the methods and Discuss how both the time and space complexity change for each of the methods above if the underlying structure of your SmartULS is an array or a linked list?

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