5-2 PROJECT 1 FLOW CHART PORTION

.pdf

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

205

Subject

Computer Science

Date

Apr 3, 2024

Type

pdf

Pages

1

Uploaded by DeaconCaterpillar4154

Report
UserGuess = Get next input //beginning the for loop for counting the hardboiled eggs and raw eggs i=1 Start //obtaining the players guess Put "Let's play! There are 12 eggs in a basket. Some eggs are raw and some eggs are hardboiled.How many are hardboiled?(0-12)" to output i < 13 TRUE FALSE NumGen = RandomNumber (0,1) i = i + 1 NumGen == 1 TRUE FALSE Put "egg" to output put i to output Put " is hardboiled. \n" to output HardBoiled = HardBoiled + 1 //Begin else loop for raw eggs Put "Egg" to output put i to output Put " raw \n" to output EggCount = EggCount + 1 //End loop for counting hardboiled eggs and display total hardboiled eggs Put "Total number of hardboiled eggs is " to output put hardBoiled to output Put ".\n" to output / /Begin second loop to decide if they win or lose UserGuess == hardBoiled TRUE FALSE Put "\n You Win!" to output Put "\n You Lose!"" to output END CS 205 Foundations of Software Development Megan Miller 5-2 Project 1 Flow Chart Due 2/11/2023 at 11:59 PM
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help