Locate a single product and display its name

Assignment Help Computer Engineering
Reference no: EM132154624

(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 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: EM132154624

Questions Cloud

Why is an understanding of boolean algebra not important : Why is an understanding of Boolean algebra not important to a weather forecaster?
What is a universal shift register : What is a universal shift register? Draw the schematic and block diagram of a 4-bit universal shift register.
How user interfacev design can be improved : Are uml diagrams adequate in representing aspects of user interfaces?
Compute the projection of f on r : Compute the projection of F on R1. Compute the projection of F on R2. Does the decomposition D preserve the set of dependencies F?
Locate a single product and display its name : Understand the concepts cohesion, and how it can be used to decompose problem definition into separate components(classes).
Evaluate potential data mining approaches for use : Using the identified dataset, evaluate potential data mining approaches for use in exploring said dataset;
Calculate the number of available devices : If the system is in a safe state, list the sequence of requests and releases that will make it possible for all processes to run to completion.
Create a conceptual data modeling for the dataset : Using the identified dataset, create a conceptual data modeling for the dataset; you may use the software of your choice.
What is the project npv : If the firm's WACC is 9%, what is the project's NPV? Round your answer to the nearest cent. Do not round your intermediate calculations.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the security and privacy risks and vulnerabilities

What are the security and privacy risks and vulnerabilities in using the Internet? List some specific common attack strategies and describe how they work and their effects/consequences on the security and privacy.

  Write a program that computes the amount of money

Write a program that computes the amount of money the computer club will receive from the proceeds of their granola project. Each case has 100 bars.

  What is the maximum theoretical downstream rate

What is the maximum theoretical downstream rate in Mbps of an ADSL modem?

  Discuss the key points of the case study

The (enterprises architecture) EA process can be a time and resource intensive exercise that requires a deep understanding of the organization's strategy.

  Generate a hash code for use in verifying the validity

Generate a hash code for use in verifying the validity and integrity of the backup file or system image file.

  Write a program to play connect four

Write a program to play Connect Four. Connect Four is a two-player connection game in which the players first choose a color and then take turns dropping colored discs from the top into a seven-column.

  Calculate the mean access time to four decimal digits

Calculate the mean access time to 4 decimal digits. Assume pipelining. i.e., we begin memory accesses while initiating cache accesses.

  Derive an expression for the average access time ta

Given that, in a virtual memory system, if the probability of a page fault is p, the main-memory access time is tm and the time required to move a secondary.

  What are some security concerns when using mobile code

Explain the following terms: boot sector virus, meme virus, stealth virus, multipartite, macro virus, script virus, and tunneling virus.

  How do interrupts help facilitate multiprogramming

Polling and interrupts are two ways used by operating systems to check whether I/O is done - How do interrupts help facilitate multiprogramming?  Give an example with your explanation

  Generate a binary first order markov sequence

Generate a binary first-order Markov sequence with P(0|0) = 0.9, and P(l|l) = 0.9. Encode it using your program. Discuss and comment on your results.

  Examine the data model and identify problems

Examine the data model and identify problems with or errors in the design. In a Microsoft Word document, capture the table definitions.

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