Question: [Java] [Mediator Patterns] Write the mediator classes so that the demo gives the following output. This mediator will mediate the communication between two buyers (a

[Java] [Mediator Patterns]

Write the mediator classes so that the demo gives the following output. This mediator will mediate the communication between two buyers (a Swedish buyer and a French buyer), an American seller, and a currency converter.

Incomplete code: drive.google.com/drive/folders/1EYOrmzF8nrNz3epOSz5HHXRPT02-pZAJ?usp=sharing

Buyer attempting a bid of 55.0 krona

Converting 55.0 kronor to 6.875 dollars

Seller rejects the bid of 6.875 dollars

Buyer attempting a bid of 70.0 krona

Converting 70.0 kronor to 8.75 dollars

Seller rejects the bid of 8.75 dollars

Buyer attempting a bid of 85.0 krona

Converting 85.0 kronor to 10.625 dollars

Seller accepts the bid of 10.625 dollars

Buyer attempting a bid of 3.0 euro

Converting 3.0 euros to 4.285714 dollars

Seller rejects the bid of 4.285714 dollars

Buyer attempting a bid of 4.5 euro

Converting 4.5 euros to 6.4285717 dollars

Seller rejects the bid of 6.4285717 dollars

Buyer attempting a bid of 6.0 euro

Converting 6.0 euros to 8.571428 dollars

Seller rejects the bid of 8.571428 dollars

Buyer attempting a bid of 7.5 euro

Converting 7.5 euros to 10.714286 dollars

Seller accepts the bid of 10.714286 dollars

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!