CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2012
    Posts
    4

    c# visual studio quiz creating HELP!!!

    Hello

    I have only been coding for a few weeks with visual studio and I need a Bit of help xD

    I am trying to produce a application that tells the user what type of holiday they are suited to.

    It will have multiple chose questions and at the end it will show what holiday suits them the most..

    I know that I will need a database and I will be making one in access. can you please help me go about this.

    I need no help with the GUI just the code



    so for example 5 questions asking questions such as
    1. I want a ____ Holiday :
    A. calm
    B. fun
    C. Family

    and then at the end it will show the type they want.... I hope I have explained it well

    thanks for any help I get

  2. #2
    Join Date
    Dec 2008
    Posts
    144

    Re: c# visual studio quiz creating HELP!!!

    If you're running at least VS 2005, hopefully you're using a more recent version, you can create a local SQL database, so there's no need to mess with Access unless you're being required to (this looks like a homework problem).

    The main thing you need to decide is how you are going to use the user's answers to determine what answer to supply. Does each value have a numeric representation and the sum determines what response you return, or is it something else? You need to write a class to take input of the user's responses and spit out the application's response.

    Also, you need to think about how you're storing the user's responses. Do you need to store the actual text of the response, or can you use a foreign key relationship with a lookup table so that you only store the FK?

    Define your requirements more and then maybe we'll be able to offer some more specific help.
    Code:
    if (Issue.Resolved)
    {
         ThreadTools.Click();
         MarkThreadResolved();
    }

  3. #3
    Join Date
    Feb 2012
    Posts
    4

    Re: c# visual studio quiz creating HELP!!!

    Thanks for the reply.


    I read it back and I didn't explain myself very well really I am quite new to programing and I want to make a simple 5 question quiz for training for a bigger quiz in the future.

    What I want to do is have 5 questions with radio buttons (say 3 each question) and at the end of the questionare the user is given a result.

    The questionare is about gaming and what type of holiday the user should go on next.. for example:
    question one: what type of holiday are you looking for:

    radio1: sun
    radio2: relax
    radio3: party

    question two: to you want to visit:

    radio1: spain
    radio2: grease
    radio3: Ireland

    if the user chooses 1 and 1 then a msgbox comes up saying "Majorca" but if they go for 2 and 1 then they get "Rhodos".

    I hope I have explained it well guys. Visual studio 2010 and a week or so experience with it

    Thanks

    Are you sure I need a database to do this?

  4. #4
    Join Date
    Feb 2012
    Posts
    4

    Re: c# visual studio quiz creating HELP!!!

    I have had a change of heart and Have changed my mind on what to do it on

    I am quite new to programing and I want to make a simple 5 question quiz for training for a bigger quiz in the future.

    What I want to do is have 5 questions with radio buttons (say 3 each question) and at the end of the questionare the user is given a result.

    The questionare is about gaming and what type of game the user should buy next.. for example:
    question one: what type of game are you looking for:

    radio1: fps
    radio2: rpg
    radio3: action

    question two: to you want a:

    radio1: tactical
    radio2: arcade
    radio3: offline

    if the user chooses 1 and 1 then a msgbox comes up saying "Battlefield 3" but if they go for 2 and 1 then they get "gears of war".

    I hope I have explained it well guys. Visual studio 2010 and a week or so experience with it

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured