Hey guys, could anyone give me example pseudocode for a program (using menus) that gives you the following options for a trivia quiz:
(1) Movies
(2) Television
(3) Sports
(4) Quit
and When the user selects an option, display a question that falls under the category, and after the user responds, display if they were correct or not
If anyone could take their time to help me out i'd really appreciate your talent, thanks much.
Need Help: Trivia Program using Menus and Validating Input
Started by Nollen, Oct 29 2007 03:31 PM
3 replies to this topic
#1
Posted 29 October 2007 - 03:31 PM
|
|
|
#2
Posted 30 October 2007 - 04:26 AM
I would use a case statement so when the user selected the category, it would go to that case and ask a question. Then sent the question answered by user to another method and use what ever kind of checking method you like to perform. I will try to come up with an example soon. But hopefully this will get you thinking about how to do it.
~Max~
~Max~
#3
Posted 30 October 2007 - 06:18 AM
Well I think that the best optionb is to use cas of.. I dont have time to make any pseudocode at the moment but i will try to help if you make the basic code.
#4
Posted 01 November 2007 - 10:13 AM
What do you mean by validation? If it got the right answer? or some input validation like the MS excel/access validation rules?


Sign In
Create Account

Back to top









