Question
**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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started