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

  Goals of managing health information

Describe how you would explain the purpose and goals of managing health information to a new health care employee.

  Album name instance variable

Design a CD class where a CD object represents a single music CD. What kinds of information (artist, genre, total playing time, etc.) do you want to know about a CD?StateAlbum Name instance variable

  Writing a program to calculate state income tax

The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income..

  Write down a java program that implements a stack of

write a java program which implements a stack of integers. an integer should only be pushed into the stack if it is

  Describe the equivalence classes

Prove that these relations on the set of all functions from Z to Z are equivalence relations. Describe the equivalence classes.

  Create online store web site

the Java and JSP source codes and SQL scripts for creating a database in Oracle - any configuration files used

  Write a while loop that lets the user enter a number

1) Write a while loop that lets the user enter a number. The number should then be multiplied by 10, and stored in a variable called product. The loop should then iterate as long as product contains a value less than 100.

  Programming using the java language

Programming using the Java language. The basic concepts of object-oriented programming. Topics used will include algorithmic logic, control structures, data and program design, objects and classes.

  This project is designed to exercise all the java tools

This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment.

  Design and implement a set of classes and interfaces and

design and implement a set of classes and interfaces and use them to evaluate the rtas resource requirements.nbspyour

  Develop the implementation file student.cpp

Required to implement the class to develop the implementation file Student.cpp that conforms to the following specifications

  Test the invoice application

Study the error message and note the line number in the statement in the InvoiceApp class that caused the crash. Then click on the link to that line of the code.

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