DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    John Guest

    C++ program question


    If anyone can help, Id really appreciate it. I have to write a program that
    allows the user to play a probability game:

    There are three doors.
    A bag of money is begind one of the doors and a goat is behind the other
    2.
    A player chooses a door
    The host opens one of the "other doors" to reveal a goat.
    If both other doors hide goats, the host picks one at random
    Last the player is given the option of sticking with his original choice
    or switching to the other unopened door.


    Thanks for any help,

    John

  2. #2
    Zane Thomas [.NET MVP] Guest

    Re: C++ program question

    On 1 Feb 2002 18:39:41 -0800, "John" <dikers_2000@yahoo.com> wrote:

    >There are three doors.


    This is a well-known homework problem. :-)


    --
    When freedom is outlawed
    only outlaws will be free.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links