Click here to Skip to main content
15,916,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am a beginner in c++ and i would like to know how i can create a quiz program where,the user will input his name and student number and then proceed to answer the question.after the the end of the question the program will calculate correct answers out of the all answered questions
Posted
Updated 9-Mar-10 1:42am
v2

This is a very vague question, please pinpoint what is your problem exactly. What did you already try ? What are you stuck with ?
 
Share this answer
 
You know when I was studying my C++ teacher assigned the same question as homework.

You wouldn't be trying to get other people to do your work for you, would you?
 
Share this answer
 
And what is your trouble about?
Since Visual Studio may build a skeleton application for you and your task is pretty easy why don't you start coding?
:)
 
Share this answer
 
Making a dialog box to ask for name and stundent_ID is quite basic.

About the quiz... a little help:

Make a stuct containing fields for the text question, text possible answers, int value of correct answer and int for the answer given by the user.

Then you can use a second dialog with a output text field for the question and a group of radio buttons for the answers, you get the entered answer with them and compare it with the correct one, incrementing the score of the student if the answer is right.

When the quiz is ended, then you give the final score.


I don't think you are going to get any ended code. I have given you the name of the elements you can use to do your assignemt. Investigate a bit, try it yourself and when you get stuck ask for help in the particular problem.
 
Share this answer
 
i want to create a quiz program in win32 application.when the program runs a page dialogue box must appera for the user to put his or her name or students number.then enter to answer the questions, which will later calculate ur results for u
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900