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

  Uml exercise

UML Exercise: Automated Teller Machine (ATM),   1. To allow authorized card holders to make transactions,   Brief Summary of Requirements:

  Write a java method that perform a recursive descent parse

Determine whether the following grammar is an LL grammar by performing the pairwise disjointness test, showing the FIRST sets of each RHS of each nonterminal - Write a Java method that perform a recursive descent parse of the production.

  Java program for creating a order menu

Assume your consulting company has been hired to construct a program that meets the following requirements.

  A method and using a synchronizedblock

What'sthe difference between synchronizing on a method and using a synchronizedblock?

  Start a new project and package

Write your own name and that of your programming partner on the top of page. Start a new project and package called PA3 and set up your programs inside.

  How should ijvm be modified to make best use of instructions

On the full JVM machine, there are special 1-byte opcodes for loading locals 0 through 3 onto the stack instead of using the general ILOAD instruction. How should IJVM be modified to make the best use of these instructions?

  When are stubs & skeletons created for my ejb components

When are stubs & skeletons created for my EJB components? is it at development time, deployment time or run time?

  The department of community affair- jail report

The Department of Community Affairs (DCA) for the State of Georgia performs many functions including gathering statistics and doing research. DCA provides a monthly jail report that provides some interesting information about jails in the state.

  Design class to represent any household item

Design and implement your own simple class to represent any household item of your choices (toaster, fan, and hair dryer, piano....)

  Java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Java program to find a value at in index

Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.

  Run the code

Run the following code, Explain the output aYer you let it run 20 seconds, 5 minutes, 10 minutes.

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