QBASIC Homework #3

PS 70

Dr. Zabinski


Name ________________________________
I did this homework independently YES or NO
I received help from ______________________________

Worksheet #17 exercise #3 including the challenger

  1. Change the last sentence of the challenger to read:

    When they have $0 or $200 the game is over. (The computer automatically cuts out with an appropriate message such as "you have no money, you cannot bet" or "you better quit you have doubled your money").

  2. The computer keeps track of the bet number and prompts the user with:

    This is bet number_____.

  3. Try the program with different bets.

What you need to hand in:

  1. This page as a cover sheet.
  2. The program.
  3. Sample runs:

    a. Run the program until the player has $0 left.

    b. Run the program once more until the program cuts out with the player having doubled his money.

    c. Repeat a. and b. with different bets.


Click here to go back to the main page