Create a class diagram that shows an interface

Assignment Help JAVA Programming
Reference no: EM13811079

The Buyers and Sellers Project

The Buyers and Sellers project will support people and businesses who have a product to sell (the Sellers) and people or businesses who want to purchase a product (the Buyers). The application will provide a broker system that will help Buyers search for, find, and purchase the product that they want.

Each Buyer will have a collection of products that they want to purchase. Each Seller has a product that they are offering for sale. To find and purchase a product, a Buyer will contact a broker who will attempt to locate that product for the Buyer. The broker will ask the Sellers if they can supply the desired product. Once a Seller of the product has been located, the broker will retrieve the product for the Buyer.

The broker portion of the application has already been developed. Your role in the project is to develop the Buyer and Seller classes. The broker will communicate with both Buyers and Sellers.

Each Buyer must know:

1. Their name

2. The products they want to purchase

3. The products they have purchased

Each Buyer must be able to:

1. Provide their collection of products they want to purchase

2. Provide their name

3. Provide the collection of products they have purchased

4. Add a new product to their collection of purchased items

Each Seller must know:

1. Their name

2. The product they want to sell

Each Seller must be able to:

1. Provide their name

2. Provide the product they want to sell

3. Answer if they can provide a particular product

4. Sell their product

You will start by designing some of the classes needed to build the Buyers and Sellers portion of the application. Create Java classes that will be used in the BuyersAndSellers Eclipse project. Your classes will work with the classes that already exist in the BuyersAndSellers project.

Create a test class that will help you verify that your class is operating correctly.

1. Create a class diagram that shows an interface called Buyer in the Violet UML editor. This interface should declare the methods to perform a buyer's responsibilities.

2. Add a class called BuyerImpl to the class diagram that implements the Buyer interface.

3. Add an interface called Seller that declares the methods to perform a seller's responsibilities.

4. Add a class called SellerImpl that implements the Seller interface.

5. Open the Sellers project in Eclipse and examine the methods that are declared in the Seller interface.

6. Write code to implement the methods for the SellerImpl class.

7. Write code in the SellerImplTestDriver class to test the methods in your SellerImpl class.

Reference no: EM13811079

Questions Cloud

Political science about climate change : Political Science About Climate Change
Negotiation power or ability to influence : Explain how you use your personal negotiation power or ability to influence others in the workplace or in your personal life. Comment on your source of power and cite one negative and one positive consequence that came about as a result of your in..
Define corporate social responsibility : Define corporate social responsibility. Describe and evaluate the economic model of corporate social responsibility. Describe the key components of the term responsibility.
Resource-based view and relation to strategic management : Explain the resource-based view and its relation to strategic management. Identify at least three ways that this view differs from the I/O view.
Create a class diagram that shows an interface : Create a class diagram that shows an interface called Buyer in the Violet UML editor. This interface should declare the methods to perform a buyer's responsibilities
Mass merchandiser global supply chains : Describe the logistics steps that large mass merchandiser global supply chains use to ensure timely availability of inventory for routine and sales merchandise needs.
Alternative gender roles : Alternative Gender Roles
Typical manufacturing supervisors challenges : What are typical manufacturing supervisors' challenges, frequently created due to no fault of their own? Under newer, nontraditional manufacturing and operations methods, how can these problems reduce?
Conclusion about the most appropriate course of action : While you are conducting this research, also consider that no one model is without flaws or inconsistencies. You should always review differing opinions before coming to a conclusion about the most appropriate course of action.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java applet for grade of gas in costco gas station

Write a java applet (not a java application program) for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use.

  Allows the user to enter students names followed

Write a program that allows the user to enter students names followed by their test scores and outputs the following information(assume that the maximum nmber of students in the class is 50

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Video store application

Prepare an object-oriented program in Java for a video store application with the subsequent

  A java program that reads the records

A java program that reads the records from the golf.dat file and displays them. It also displays the name of the player with the best (lowest) golf score.

  Negatively impacting health care currently

Identify and explain at least two events that are negatively impacting health care currently. Tell us why you think these items are negatively impacting the access to care, and make sure that you cite your references.

  Write a program cmsc401 java

Write a program cmsc401.java that receives a sequence of commands (from 1 up to 10000 commands)

  Write down java program for furniture company

Write down a Java program for the furniture company. Ask user to select P for Pine, O for Oak or M for Mahogany. Illustrate price of table manufactured with chosen wood.

  Define responsive design

Define Responsive Design and clarify what techniques can be used to create a responsive design for a web application? Explain what makes jQuery Mobile different from other JavaScript libraries such as jQuery and jQueryUI

  Type i and type ii virtualizations

Compare and contrast at least two (2) similarities and two (2) differences between Type I and Type II virtualizations. Using your comparison, choose either a Type I or Type II virtualization and determine a specific networking scenario in which yo..

  Write a public static method called sumdigits

Write a public static method called sumDigits that will return the sum of the digits within a string.

  Write a java program that creates 3 threads

Write a Java program that creates 3 threads each of them performing 10 reading/writing to the shared location. Use a random number generator to decide if the request is reading or writing

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