Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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.

Java, Programming

  • Category:- Java
  • Reference No.:- M91381032
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in Java

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As