Page 1 of 2 12 LastLast
Results 1 to 10 of 11

pwd pa help pls. :)


This discussion is about "pwd pa help pls. :)" in the "Programming" forums.
Hi po! i really need help with this for this sem naa koe project sa programming 1st year pako we have to make a game ...

  1. #1
    Junior Member shaqu's Avatar
    Join Date
    Aug 2009
    Gender
    Male
    Posts
    62

    Default pwd pa help pls. :)


    Hi po! i really need help with this for this sem naa koe project sa programming 1st year pako
    we have to make a game nya the game i have in mind is a multiple choice kind of game.
    akong question is how do i get the program to tally and display the number of correct answers?



    xenxa na ah noob pa kaau ko first time experiencing this kind of things

  2. #2
    Elite Member gshukaku's Avatar
    Join Date
    Mar 2008
    Posts
    1,518
    up nlang tka bro para makita sa mga expert

  3. #3
    Junior Member mr.romantic's Avatar
    Join Date
    Sep 2008
    Gender
    Male
    Posts
    372
    what kind of language ul be using?

  4. #4
    Junior Member kickerz's Avatar
    Join Date
    Sep 2010
    Gender
    Male
    Posts
    142
    bro f naa pku idea ani.. xure mo help tko... comsci q b4 USC 2 sems rko ni shift q ECE... heheheh

  5. #5
    Junior Member 0kimangel0's Avatar
    Join Date
    Feb 2008
    Gender
    Male
    Posts
    325
    Bro, you need to create a variable (integer) then add one (1) value to it for every correct answer.
    Example:
    for C /C++
    int numberofcorrectanswers;

    If (chosenanswer = correctanswer){
    numberofcorrectanswers = numberofcorrectanswers + 1}

    for vb
    var numberofcorrectanswers as integer
    If chosenanswer = correctanswer then
    numberofcorrectanswers = numberofcorrectanswers + 1
    end if




    For you multiple choice questions you can use "Select Case" statement

    IN C/C++
    switch(aValue)
    {
    ����case 0:
    ��������DoSomething();
    ��������break;
    ����case 1:
    ��������DoSomethingElse();
    ��������break;
    }

    IN VB

    Select Case(aValue)
    ����Case 0: Call DoSomething()
    ����Case 1: Call DoSomethingElse()
    End Select

    Please indicate the programming language you are using.

  6. #6
    C.I.A. ChaosOrb's Avatar
    Join Date
    Oct 2003
    Gender
    Male
    Posts
    2,560
    shaqu: mas maayo bai, if imong i.post imong code diri para ma.check sa mga people nga gusto mo tabang.

    Ang imo man gud question kay may pagka.general programming concept and I'm sure it has been taught in any IT course.

    help us, help you!

  7. #7
    Elite Member psyche54's Avatar
    Join Date
    Oct 2005
    Posts
    1,910
    like others said, you need to specify the language you will be using...

    There are so many experts here who can help you...

  8. #8
    Junior Member shaqu's Avatar
    Join Date
    Aug 2009
    Gender
    Male
    Posts
    62
    sorry dae mga bro C++ ako g gamit thanks pud ni 0kimangel0 you really helped a lot

  9. #9
    Junior Member 0kimangel0's Avatar
    Join Date
    Feb 2008
    Gender
    Male
    Posts
    325
    Quote Originally Posted by shaqu View Post
    sorry dae mga bro C++ ako g gamit thanks pud ni 0kimangel0 you really helped a lot
    Your Welcome bro.


    Just a simple tip: If you want to be a good programmer, don't dedicate your time in memorizing syntax for it changes for every programming language; but rather focus on understanding the algorithm.

    Best practices:
    ***Optimize your code (There are a million ways to kill a cat, but look for the shortest/fastest way to do it.)
    ***Do Error Trapping
    ***Use Comments to organize your code (comment to the extent that if another programmer reads your code he will be able to understand it well)
    ***Learn how to use breakpoints during debugging.

  10. #10
    C.I.A.
    Join Date
    Apr 2009
    Gender
    Female
    Posts
    8,816
    Blog Entries
    39
    Schoolmate mi niyaaaa
    Pareha mi'g problema. LOL

  11.    Advertisement

Page 1 of 2 12 LastLast

Similar Threads

 
  1. Pls Pa help sa External HD nako
    By ice00 in forum Computer Hardware
    Replies: 15
    Last Post: 05-20-2011, 03:52 PM
  2. Pwd pa help...!!!
    By libido in forum Software & Games (Old)
    Replies: 9
    Last Post: 02-22-2008, 02:14 AM
  3. NAT error with azureus..help pls
    By kookie_monster in forum Networking & Internet
    Replies: 17
    Last Post: 05-31-2006, 05:03 AM
  4. help pls
    By iamdede in forum Networking & Internet
    Replies: 2
    Last Post: 02-15-2006, 07:16 PM
  5. KIA cd5 VS. BMW can anyone help pls..
    By koto in forum Sports & Recreation
    Replies: 5
    Last Post: 11-28-2005, 04:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top