Lab 5 - Lab Five [30 points + 10 extra credit] This lab has...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 209 - Data FIles, Recursion, and Random Numbers - Page 1 of 5 Lab Five [30 points + 10 extra credit] This lab has two parts and you must turn in a zip file of your project for each part (total of 2 files). Try to work through the lab on your own, but if you get stuck, ask a neighbor or the instructor for help. Part A: The Magic 8-Ball (Random Numbers) [5 points + 10 extra credit] In this part, you must write a program that simulates a Magic 8-Ball. This is what your program output should look like: Another example: For extra credit (10 points), modify your algorithm and program such that it keeps asking the user if s/he wants another answer: Please enter a seed value: 5 Magic 8-Ball Says: As I see it, yes Please enter a seed value: 32 Magic 8-Ball Says: Outlook not so good
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Please enter a seed value: 86 Magic 8-Ball Says: Signs point to yes Would you like another answer (1=Yes/0=No)? 1 Magic 8-Ball Says: Cannot predict now Would you like another answer (1=Yes/0=No)? 0
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Lab 5 - Lab Five [30 points + 10 extra credit] This lab has...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online