any one help me how can i do this plz plz guyz help me don't say do it by your self i could'nt understand thats why i am asking from you if i know then why i ask i don't know thats why i am asking friends plz help me...!!
i dont know the codes for 7 segment and for different sounds..
How to create a quiz program ?
Help me with my assignment.
Write a C program to perform the role of a quiz master. It can display questions, record user’s answers, keep the time, record the scores and more. You must use the Parallel Interface Board (PIB) as the device for the user to input the answer, display information etc.
Execution of the program should be similar to this:
1.Read questions and answers (solution) from text files.
2.Display information about the quiz, eg. theme of quiz, how many questions,
how to answer, how the scoring works etc.
3.Display first question.
4.Get answer from user (or wait until timeout – 15 seconds).
5.Update user’s score if he answered correctly.
6.Display next question.
7.Repeat steps 4, 5 & 6 until the final question.
8.Record user’s total score (or/and detailed answers) into a text file.
Requirements
1. The question file can be created using a text editor (such as gedit). The program must be
able to read the contents of the file and display one multiple-choice question at a time.
For each quiz, all the questions must be placed in ONE single text file. The
description/information about the quiz is also in this. If you have more than one (set of)
quizzes, they can be in separate files, but only ONE file for each (set of) quiz.The correct answers can be put in its own file (answer file). Each set of correct answers in
one file.When writing to the user score file, older scores should be left intact.
A question should not be restricted to a single line. Possible answers should be offered as
multiple (at least 4) choices. The program should indicate clearly (on screen) how the answer
should be selected using the switches and/or push-button.
6.Only the PIB can be used for user input. The PC keyboard can ONLY be used to start the
program.
7.Time limit for each question/answer is 15 seconds when the question is displayed. After five
seconds, the PIB will beep once. After a slightly shorter interval, it will beep again. Then
again and again. The interval should get shorter and shorter as the time limit is approached.
When the time is up, the PIB will give out one long beep. LEDs and 7-segment display should
be used as visual aid for the same purpose.
8.If the user answered correctly, the PIB will display exciting animation (using LEDs and/or 7-
segment display) or/and play interesting series of beeps. If the user answered wrong,
another set of animation/beeping should be performed. For time-out, again another set.
9.The PIB displays the current score of the user after each question/answer. The display must
be able to handle more than one digit numbers.
Hints
1. Use struct to store the multiple-choice-questions and correct answers.
- Use fgets() to read the file contents. Limit each line to 80 characters.