Creating a quiz that tests students knowledge

Assignment Help Basic Computer Science
Reference no: EM131853042

Fergus is creating a quiz that tests students' knowledge on different topics*, such as:

  • History
  • Music
  • Computer Science.

Students must register before they can take the quiz, choosing a unique username and a password for the account. The username and password are saved into an external text file. They must then enter the following details about themselves:

  • Name
  • Age
  • Year Group.

A student can choose which topic they want to answer a series of questions on. The student can then choose a difficulty rating of 'Easy', 'Medium' or 'Hard'. Each question will have a set of possible answers that the user can choose from. The number of answers the student chooses from changes based on the difficulty of the quiz. The user must select an answer to a question before the next question is displayed.

At the end of the quiz, the game will output the number of questions they got correct and a grade depending on the percentage of questions the user has got correct. You must create a suitable grade system, and the percentages needed to achieve each grade. There must be at least four possible grades.

The program stores information about every quiz each student has taken, including the topic, score and difficulty rating.

Analyse the requirements for this system and design, develop, test and evaluate a program that:

1. creates a unique username for each user. The username is made up from the first 3 letters of their name and their age. E.g. Gemma Smith, age 17 would have a username of 'Gem17'. It then asks the user to enter a password for their account.

2. stores the username and password of the user, the details about each user, and the topic, score and difficulty rating of all quizzes each student has taken. These do not have to be stored in the same file.

3. allows a user to select a topic and difficulty rating (Easy, Medium or Hard) and asks five questions on that topic:

a. 'Easy' mode has a choice of two answers for each question

b. 'Medium' mode has a choice of three answers for each question

c. 'Hard' mode has a choice of four answers for each question

4. loads the questions and answers from a file stored externally to the game.

5. displays the user's score, percentage and grade achieved for that quiz.

6. gives Fergus the option to generate and output the following reports:

a. a report that allows Fergus to choose a username, and outputs all of the quizzes that they have taken, and the grade for each of those quizzes.

b. a report that outputs for a selected topic and difficulty: the average score achieved, the highest score achieved, and the user details of the person that achieved the highest score.

Reference no: EM131853042

Questions Cloud

What is the corrected amount for total assets : Risers Inc. reported total assets of $6,400,000 and net income of $510,000 for the current year. Risers determined that inventory was understated by $138,000.
What is the advantage of creating users : What is the advantage of creating users, permissions and groups in Windows? What permissions do Windows allow? Have you ever used permissions in Windows before?
Define an organization of your choosing : Define an organization of your choosing, describing both the organization's primary purpose and its physical infrastructure.
How each option affects the financial statements : Write a brief memo on how each option affects the financial statements. Include your journal entry(ies) in the body of your memo for each option.
Creating a quiz that tests students knowledge : Fergus is creating a quiz that tests students' knowledge on different topics*, such as:
Suppose you are on a job interview at google : Suppose you are on a job interview at Google, and you are asked to describe the FFT and why it is important. What is your answer?
Analyse the factors you believe led to the problems : To what stage in its life cycle does the assembly team seem to have regressed? Is the trouble Elizabeth Jennings' fault? If not, then whose fault is that?
Compute the scolers income tax : Mr. and Mrs. Scoler sold commercial real estate for $685,000. Their adjusted basis at date of sale was $544,700 ($596,600 cost - $51,900.
Specification below subnet the network : You are given the 10.10.10.64/24 network. Using the specification below subnet the network.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Design a superclass called shape

Design a superclass called Shape

  Conflicting goals is backup and recovery

One of three basic database functions that are necessary to balance these conflicting goals is backup and recovery. Briefly analyze the goal of backup.

  Writing user requirements

Writing User Requirements

  Calculate the area of a circle

Write an application that prompts the user for the radius of a circle and uses a method called circle Area to calculate the area of a circle.

  Describe why are pirates difficult to eliminate

Why does piracy exist in past and present? Describe why are (were) pirates difficult to eliminate? What to you believe about pirates as moder-day Robin Hoods?

  Difference between half and full duplex communication

Discuss examples of communication or network devices such as voice phones, pagers, intercoms, hubs, switches, wireless access points, etc. and describe why they are characterized as half or full duplex systems. Discuss how the use of a switch, as ..

  Give an example of two tables that are not relations

Suppose that two columns in two different tables have the same column name. What convention is used to give each a unique name?

  What are the benefits and drawbacks of a host-based firewall

What are the benefits and drawbacks of a host-based firewall?

  Use the matlab function spline to evaluate the natural cubic

Use the Matlab function spline to evaluate the natural cubic spline that interpolates the data points stored in the arrays x,y at on the points of the ner grid xx. (b) Plot the results of part (a).

  Threat-vulnerability and exploits assessment practices

There are multiple ways to bring threats and vulnerabilities to light. Common practices and lessons learned can help us explore for known or common threats, but how does an organization with a unique or highly unusual setup discover its vulnerabil..

  Search for a misuse of derivatives

Search for a misuse of derivatives during the credit crisis of 2007-2008. Discuss what if any governmental actions were subsequently taken

  What is the current market value of elite''s bond

Eleven years ago, Elite Elements issued a 15-year bond with a $1,000 face value and a 5 percent coupon rate of interest (paid semiannually). If investors require a return equal to 7 percent to invest in similar bonds, what is the current market va..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd