Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Pseudocode Help

  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pseudocode Help

    Dont know HOW TO DO A PSEUDOCODE REALLY REALLY NEED HELP ON THS QUESTION!

    Imagine a computer randomly selects a card from a pack of cards. You have to guess what card it is. You have to guess the suit first then its value. After each guess for the suit a message will be displayed to indicate whether your guess was successful or not. Simarly every guess for the value of suit will generate a message indicating whether the value is correct, too low or too high.

    The game ends when you have correctly identified the card selected by the computer.

    At the completion of playing 5 games the average number of guesses to correctly identify a card for that named individual will also be displayed together with an invitation to play the game again.

    Please could someone help if they have any idea how to do this! Where do i start ?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Is this a school assignment?

  • #3
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Exclamation

    LOL!

    Busted! We're telling your teacher!

    <div> - putting your mind in a box since 1997

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    We do not do homework, but here is a clue to point you in the right direction:-

    http://javascript.internet.com/games/random-number.html



  •  

    Posting Permissions

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