Locate a single product and display its name and price

Assignment Help Computer Engineering
Reference no: EM132080094

You need to help to write a java code for the following below.

The establishment called ABC Enterprise requires a Java program to keep a database of the inventory of the products that it sells. Each product is identified by its manufacturer, its name, the quantity, and unit price.

Note: a manufacturer is characterized by its company's name and address In addition to storing the information, the program should be able to make updates to the quantity and/or the price as time goes on.

That is, when a sale is made, the quantity of that product must be reduced; similarly, when a product is re-ordered, the quantity of that product must be increased.

Also, when there is a change in the price of a product, the price must be changed.

The change must be interpreted as a replacement of the value. New products may be added to the inventory at any time; also, a product may be removed from the inventory at any time.

Maintain a separate list the products that have been deleted from the database of active products.

Your program must be able to produce three kinds of reports, namely:

(a) Locate a single product and display its name, price and quantity alone.

(b) The inventory report should be structured as follows:

Product         PurchaseDate Quantity Price Manufacturer   State

Telephone      01/20/2013        10 254.99      Motorola         FL

Computer        01/06/2013 15 756.99 CBS    NY

: :    : :    : :

: :    :    : :    :

(c) A list of the deleted products should be structured as follows:.

Product Date         Manufacturer

Paper reams    01/20/2013    Morgan Jewelry

: :    :

In your design, convince yourself that you need a minimum of four classes, not including the test class - Product, Manufacturer, Address, and Database.

You may use the class called GetData.java, Listing 1.6 (in the textbook) , for inputting the data. Use a scrollable panes to display your output.

Reference no: EM132080094

Questions Cloud

Provide the command to display the entry for the root group : Provide the command to display the entries in the /etc/group file that contain the root (either as group or member of a group.
Concentration of the original silver nitrate solution : Calculate the amount concentration of the original silver nitrate solution.
What is the difference between the two commands : What is the difference between the two commands (or regular expressions) below?
Relationship between the rate of appearance : What must be the relationship between the rate of appearance of B and the rate of appearance of C?
Locate a single product and display its name and price : The establishment called ABC Enterprise requires a Java program to keep a database of the inventory of the products that it sells.
Calculate the mole fraction of bromine in water : Calculate the mole fraction of bromine in water in both solutions below, and the molality of bromine in both solutions presuming
Diprotic or polyprotic acid : 1) A diprotic or polyprotic acid: a. contains two or more atoms.
What command can write to print out the value of second : In a Bourne shell script, what command can write to print out the value of second argument from command line?
Expressions for the dissolution of calcium fluoride : 1) Among the following equilibrium expressions for the dissolution of calcium fluoride (CaF2) in water... the correct expression is?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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