Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[Java] [Mediator Pattern] Given the files below, write the mediator classes so that the demo gives the following output. This mediator will mediate the communication

[Java] [Mediator Pattern]

Given the files below, 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Does it use a maximum of two typefaces or fonts?

Answered: 1 week ago