Jump to content

Need Help: Trivia Program using Menus and Validating Input

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Nollen

Nollen

    Newbie

  • Members
  • Pip
  • 1 posts
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.

#2
MaxGuru

MaxGuru

    Newbie

  • Members
  • Pip
  • 2 posts
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~

#3
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
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
GMailGuy

GMailGuy

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
What do you mean by validation? If it got the right answer? or some input validation like the MS excel/access validation rules?