SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 2 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 30 Nov 2017 My Price 9.00

The stock is described by zero or more Products.

Need the following java program completed:

 

import java.util.ArrayList;

 

/**

 * Manage the stock in a business.

 * The stock is described by zero or more Products.

 * 

 * @author (your name) 

 * @version (a version number or a date)

 */

public class StockManager

{

  // A list of the products.

  private ArrayList<Product> stock;

 

  /**

   * Initialise the stock manager.

   */

  public StockManager()

  {

    stock = new ArrayList<>();

  }

 

  /**

   * Add a product to the list.

   * @param item The item to be added.

   */

  public void addProduct(Product item)

  {

    stock.add(item);

  }

   

  /**

   * Receive a delivery of a particular product.

   * Increase the quantity of the product by the given amount.

   * @param id The ID of the product.

   * @param amount The amount to increase the quantity by.

   */

  public void delivery(int id, int amount)

  {

  }

   

  /**

   * Try to find a product in the stock with the given id.

   * @return The identified product, or null if there is none

   *    with a matching ID.

   */

  public Product findProduct(int id)

  {

    return null;

  }

   

  /**

   * Locate a product with the given ID, and return how

   * many of this item are in stock. If the ID does not

   * match any product, return zero.

   * @param id The ID of the product.

   * @return The quantity of the given product in stock.

   */

  public int numberInStock(int id)

  {

    return 0;

  }

 

  /**

   * Print details of all the products.

   */

  public void printProductDetails()

  {

  }

}

Answers

(5)
Status NEW Posted 30 Nov 2017 01:11 PM My Price 9.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)