Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database: The data to be stored in the database is related to questions, user and user answers. The database holds a set of questions with

image text in transcribedimage text in transcribedimage text in transcribed
Database: The data to be stored in the database is related to questions, user and user answers. The database holds a set of questions with a correct answer selected from a set of options. The database may consist of three tables with the following information: QUESTIONS TESTER USERANSWERS questionID question answer userID userID questionID userAnswer point 1 What is the capital of Ga? a 2 How many starts in the USA flag? 2 3 How many states are there in USA? b WWWN N N HHH WN NUNNWNA Figure 1.NOTE: The values in the columns userAnswer and point are filled after the user finishes a test. It is filled here just as a reference to calculate if a point is given or not. The test consists of three questions. The correct answer for a question is the one given in the column answer of QUESTIONS. These structures are given to you as a reference. You may use it or just design your own data structure with the pertinent information. The interface of the questions section may look like this: QUESTION What is the capital of Ga? a) Atlanta. b) Duluth. c) Lawrenceville. d) Norcross.The main interface of the program may look like this: SELECT YOUR OPTION: a) Login with your userID. // If the user Id is correct take the test. Else reject. // Allow the user up to three tries to log in. // Upon a correct loging start displaying questions. // Once the user finish the test, the program returns // to this menu. The user have the option of login and take // the test again or exit. b) Statistics // Once a user take a test he/she is returned to this menu. // If he/she choses this option the program will require // a userID to display the results of the test. Results // or statistics consist of displaying the question, the // right answer, user answer and the total points obtained. b) Exit. Figure 3. Create a lab report where you show or prove that your program complies with all these requirements. I.e., let a user to login and take the test. Show what happened when the user wants to see the test results. Additional requirements: . Implement modularity. Ex. Create functions for specific tasks; login, getStatistics, getQuestion, setUserAnswer, blockUser, menu, showQuestionAndOptions, etc. . Create a .cpp file and submit with your lab report. . By using a particular user, demonstrate that all options from the menu are working

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions