Database of the inventory of the products

Assignment Help JAVA Programming
Reference no: EM131585729

Assignment

Purpose of Assignment To help you to:

(a) Understand the concepts cohesion, and how it can be used to decompose problem definition into separate components (classes).

(b) Understand t and coupling and how it is used to assemble the components (classes) into complete programs.

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 Purchase Date 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: EM131585729

Questions Cloud

Attempt to embed the petersen graph on the torus : Attempt to embed K5 on the torus. Is it possible?
Discuss the context of normative social influence : Describe an instance in your life when you were persuaded to adopt or reject group norms
Draw a few graphs on copies of the torus : For which m,n is Km,n planar and for which m,n is Km,n non planar? Make and prove a conjecture.
Correctly priced-overpriced or underpriced : Firm K’s shares sell today for $45. It is forecast that the share price will be $51 at end of one year. Is firm K correctly priced, overpriced or underpriced.
Database of the inventory of the products : COP3804 - Locate a single product and display its name, price and quantity alone -
Calculate the expected dividends for years : Company A has just paid a dividend (D0) of $1.50. Calculate the expected dividends for years 1 through 5.
Shares sell at the expected price : How much will the company receive if all shares sell at the expected price?
Information about various diseases : Go to the National Guideline Clearinghouse Website found at: guidelines.gov to locate information about various diseases.
Opportunities for marketers and consumers : Co-branding can be highly creative and may offer extraordinary opportunities for marketers and consumers alike.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Design and implement a small and simple email server

Design and implement a small and simple email server

  Create a uml class diagram for your class

Create a UML class diagram for your class. Your class should have at least 3 attributes (instance variables). Attributes should be appropriately typed and scoped to incorporate data hiding.

  Write your program to accommodate spaces and strings longer

Write your program to accommodate spaces and strings longer than 100 characters. You may also assume each line ends with a newline character.

  Program buttons that implements a window with three button

Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter

  Write a new queue method called movetorear

Write a new queue method called moveToRear() that moves the element currently at the front of the queue to the rear of the queue. The element that was second in line will be the new front element. Do this using methods q.enqueue() and q.dequeue()

  Creates a professorraing class consisting of professor ID

Write a program that creates a professorRaing class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfullness, and clarity. In a separate implementation class, allow the user to enter the values.

  Write a program that establishes two savings accounts

Write a program that establishes two savings accounts with saver1 having account number 10002 with an initial balance of $2,000, and saver2 having account 10003 with an initial balance of $3,000

  What is the characteristic behavior of a stack

What is the characteristic behavior of a stack? What is the characteristic behavior of a queue? What are the advantages of the java.util.Stack implementation of a stack?

  The data file being used contains records

The data file being used contains records with an employee's name, the number of hours they worked, and their hourly pay rate. Write a program to read the records of information and output (to the Output window or a dialog box) the employee's name..

  Design a function named "falling distance"

Design a function named "fallingDistance" that accepts an objects falling time, in seconds, as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Design a program that calls the func..

  Consider a typical certification hierarchy

Why might Bob still not trust that the certificate for Alice truly establishes Alice as the owner of the public key in the certificate?

  Write and test a java program to read in multiple lines

A palindrome is defined as a string of 1 or more characters that contains a word, a phrase or a number that reads the same forward and backward, ignoring case, punctuation and white space.

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