|Apr 23, 2011, 09:59 AM||#1|
PLSSSSSSSSS help me
hi .friend i need ur help
i dont know how to slove this program and i submitted this program to marrow
Write a letter guessing game. Computer thinks of a letter and you guess the letter. If your guess is too high or too low as compared to computerís number, program must notify you.
Design a program using do-while loop and terminate the loop when computer letter and your guessed letter become same.
Try with following inputs:
B G Z Y T
plssss help me
|Apr 23, 2011, 11:47 AM||#2|
How about something like this pseudocode?
Choose a letter.
Ask the user to guess a letter.
Read the user's letter.
While the user's letter differs from the letter the computer picked, if the user's letter is comes alphabetically before the chosen letter, then tell the user to guess a higher one; otherwise, tell him to guess a lower one. After you say whether his letter is higher or lower than the chosen letter. ask for another guess and then read it. When the user's letter equals the picked number, print "You won."
Last edited by Bill McEnaney; Apr 23, 2011 at 11:56 AM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Help me decide||jacdem||MacBook Pro||12||Nov 20, 2011 12:39 PM|
|Help me! Help me recover my iPhoto Events||MacFabulous||Mac Applications and Mac App Store||2||Nov 19, 2010 01:22 PM|
|help me help me !! i hav problem ..||k3atkeat||iPhone Tips, Help and Troubleshooting||1||Nov 17, 2009 09:49 AM|
|help me somebody, help me||Mr_Brightside_@||Mac Peripherals||3||Jan 27, 2006 07:19 PM|
|Book suggestions??? help me,help others,help eachother||fujimi442||Community||11||Jan 20, 2003 02:18 AM|
All times are GMT -5. The time now is 12:59 PM.