Question: I need a help with my python activity. This requires 2 clients and 1 server. This is a system to support an online math contest.

I need a help with my python activity. This requires 2 clients and 1 server. This is a system to support an online math contest.

Rule:

There are two participants answering at the same time.

The host is responsible in starting up the server, after that they wait for the clients. When the two clients are connected, they must send the message: READY to the server. When the server receives the two READY from the clients, the contest starts.

The server will display 3 questions one after another which can be answered in 30 secs each.

  1. 11+10 = 21
  2. 10+22 = 32
  3. 10+10 = 20

The participant with most correct answers wins.

At the end of the program, the server must show the results.

ex: Client1 WINS! 2/3

Client2: 1/3

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 Programming Questions!