Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**In Java or C++** Build a system which allows a client to practice multiple choice tests in math. Design and implement a client and server

**In Java or C++**

Build a system which allows a client to practice multiple choice tests in math. Design and implement a client and server programs over a TCP network socket connection, which will do the following:

Client:

Connect to server

Create new contact by providing command

And password by providing

Login to the server if he already registered by providing the user name and password

Asking for the math exams

Can redo the exams again

Can show the scores of his tests

Close the connection

Server:

Wait for a client connection.

Store the user name and password of the users

Verify if the user in registered

When a client connection is accepted (if user is registered) send an acknowledgement (a welcome message) as a string of text.

From Questions database, server sends the first test questions plus three possible answers to the client.

Receives the answer from the client. Stores and evaluates the answer. This process is repeated three times.

After that the server sends score to the client and if he like to repeat the test

Store the score of the test for that user

Questions database:

Q1: (A + B)*(A+B) 1. A*A + B*B 2. A*A +A*B + B*B 3. A*A +2*A*B + B*B (correct) Q2: (A + B)*(A - B) 1. A*A + 2*B*B 2. A*A - B*B (correct) 3. A*A -2*A*B + B*B Q3: sin(x)*sin(x) + cos(x)*cos(x) 1. 1 (correct) 2. 2 3. 3

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

Step: 3

blur-text-image

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

How should Ford compete?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago