Discussion in 'C' started by vladimircaramnik, Mar 29, 2011.

Joined:
Mar 29, 2011
Messages:
2
0
Trophy Points:
0
Dear cfanatic members,

Here it is:

Create a QUIZ-like program that will show 20 questions about Turbo C.
Display the question and accepting the answer. (every answer is 5 pts.)

Compute the total score in the end.

2. ### abhasNew Member

Joined:
Apr 10, 2011
Messages:
6
0
Trophy Points:
0
yeah i can help. but do you want me to write the entire program or just enter the clue about it.

Joined:
Mar 29, 2011
Messages:
2
0
Trophy Points:
0
Sir just give me a clue or advice or anything you think that can help me to start... thnx a lot.

4. ### Ann_beginnerNew Member

Joined:
Apr 10, 2011
Messages:
9
0
Trophy Points:
0
Sir, i too hav a similar quiz project. Can yu pls give some clues?
Here it is:

Create a kbc QUIZ-like program that will display questions and accept the answer.
Prize money for every correct answer.
Compute the total money in the end. And ask if the player wants to PLAY AGAIN or QUIT. If user plays again, display a different set of questions

5. ### abhasNew Member

Joined:
Apr 10, 2011
Messages:
6
0
Trophy Points:
0
ok here are the step by step clues:
1.use loop(for or while or do while whatever you like- but i think for loop is easier to use)
and enter printf() and scanf() within it to print the question as well as answers and to gather the answer (going by your requirement it seems that it will be a mcq type question i.e you will have to accept the option number).
2.use a counter(simply an integer) which will increase its value by +5
Code:
` counter=counter+5;`
if the answer is correct(so you can understand that you actually need to check if the answer is right at first).
3.at last when the stock of questions is finished or there is a wrong answer a printf() must be used to print the total marks (or total money as asked by Ann beginner) and use proper logic in if-else condition statement to exit( the code is
Code:
`break;`
)

6. ### abhasNew Member

Joined:
Apr 10, 2011
Messages:
6
0
Trophy Points:
0
last of all, i can prepare the entire code for you if you are in some problem; but at first show me how you tried doing it. thanks both,Ann_beginner and vladimircaramnik.
lastly just a guess: vladimircaramnik are you from russia?

7. ### Ann_beginnerNew Member

Joined:
Apr 10, 2011
Messages:
9
0
Trophy Points:
0
thanks abhas, it wud be gud to c yu on fb, bt whts yur email id?

8. ### abhasNew Member

Joined:
Apr 10, 2011
Messages:
6
0
Trophy Points:
0

Joined:
Apr 10, 2011
Messages:
9