Answered step by step
Verified Expert Solution
Question
1 Approved Answer
* * * * i need you to please write the full functional java code that avhieves all the requierments of this project ( the
i need you to please write the full functional java code that avhieves all the requierments of this project the full code not just steps on how to solve it
thank you in advance
In this course project, you are required to write a network application that implements a clientserver quizzesenvironmentfor elementaryschool studentsusing TCP APIin Java. The environmentallows studentsclients to take math quizzesrelated to the four main operations Each quiz consists of a number of questions that are based onthesefour operations,with acertaindifficulty levelthat is determinedby the number of operations in the question and the number of digits that numbers consist of The studentmust be able to provide the correct answer for each questionto earnthequestion point. The quiz total gradeis the summation of all earned questions points.Onthe server side:The server application must acceptclientsconnections and respond to them. The server must be able to handle more than one connectionat the same timebut for each connection it must not allow more than one quiz to be performed at the same time.When the client application is connected, the client mustbe asked continuouslytochoose either to: Startanew quizTerminate.If the studentrequests to start a quiz, the program must start configuringsettings of the quiz by asking the student to specify the following:The number of questions.Whether atimeout must bespecified for questions, within which the student must provide the answer to be counted. If the student chooses to specify a timeout, he must be askedto enter this timeout in secondsThe difficulty of questions whichis specified by:oMaximum number of operationsthat questions consist ofExample:if the student chooses it tobe all questions mustconsist ofexactlyone operation such as: Example:if thestudent chooses it to be the questions could be any of the following: The maximum supported value for this option is oMaximum number of digits that form numbers in thequestion.Example: if the student chooses it to be then all numbers in the question must consist of exactlyone digit.Example: if the student choosesittobe then numbers could consist of or digits.
When the quizstarts, foreach question, the server must select numbers and operations in the questionrandomly as specified in the quiz settings. The studentmust provide the correct answer within the specified timeoutif a timeout is specified If so the point of the question will be added to the total grade. For each question the student can sendonlyone answer. This process is repeated for all thequestions. Make sure to introduce a slight delay between each question and the next. The server application must compute the points by summing the points of the questions.The server must send the studentthequizresultwhich includesa report of all questions showingwhich questions were answered correctly and which were answered incorrectly along with the correct answer,then the quiz total grade.Ifthe client selects to terminate, the connection with the server must be terminated.Note that the server must preserve statistics info that includes:Total number of quizzes performed by all studentsThe numbersof quizzes performed that included one operation, two operations, threeoperations, and four operationsThe numbersofquizzes for which students achieved:of thetotal grade. of the total grade. of the total grade. of the total grade of the total grade.This statistics infomust persist even if the server application is terminated. If thereis noactivityreceivedconnections on the server sidefor minutes, the server application must ask the admin whetherto:Continue waiting, in this case theserver application mustgo back to waiting for clientsconnectionsDisplay statisticsand terminate,statistics info must be displayed to the admin and the server application must be terminated. Your final submission must include the following:Your code,fully documentedA report that includes the UML class diagram showing the design of your application data and methods.
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