[Tutor] i am stuck...

Chris balderas at whtvcable.com
Thu Sep 27 04:50:25 CEST 2007


I don't know what to do at this point.  I do not have the book, but will get
it just to have...

Can anyone help me?

> Here some more work:
> 
> 
> guess = 0
> 
> Print ?Pick a number between 0 and 100?
> 
> 
> While guess != ________ :
> 	print ?My first guess is ?, guess
> 	print ?Is my guess correct??
> 	if guess = = type3
> 		print ?I got it!?	
> 	if guess > _______:
> 		pick lower #
> 	if guess <_______ :
> 		pick higher #
> 
> that?s all I can do right now?
> 
> the mechanism that I can?t figure out is how to show in code form how the
> computer goes to the next guess using the split range... ie. if the first
> guess is 50, the second guess would be taken from the 50-100 (50/2 = 25 +
50 = 75) second guess  would be 75 if the number is too high.  If the number
> falls below 50, then the split range is 25, ect?
 

Internal Virus Database is out-of-date.
Checked by AVG Free Edition. 
Version: 7.5.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007
3:59 PM
 



More information about the Tutor mailing list