![]() |
|
#1
|
|||
|
|||
Flowchart creationHey all, new here and to programming. I am in a introductory programming class at a community college. As part of a lab assignment, we have to create a flowchart for a computer "guessing game." The idea is for the computer user to input a # between 1-1000. The computer gets 10 guesses. How do I do this? I wouldn't mind if someone could do it for me ($$$) or help me get started. Thank you.
|
|
#2
|
|||
|
|||
Re: Flowchart creationYou should look into a binary search algorithm. That would be the best one for this scenario. Basically, you have 2 variables (min and max) and you start by guessing the midpoint. If the guess is correct, you are done. Else if the guessed number is lower than the desired guess, set min to the guessed number. Else, if it is higher, set max to the guessed number. Try again with the new min/max values.
|
|
#3
|
||||
|
||||
Re: Flowchart creationQuote:
__________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#4
|
||||
|
||||
Re: Flowchart creationOut of curiosity, what good is it to you if you pay someone to do your homework? I doubt you can do that on your final. If you don't know how to do it, you'd better learn or change classes.
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I need help on My SQL Database Creation Statement | asdfg | MySQL / PHP Forum | 6 | 08-Mar-2008 04:13 |
| Flowchart for a while loop;need help.. | krystyna93 | C Programming Language | 2 | 04-Nov-2007 21:21 |
| Child window creation from a dialog based application | CyberFriend | MS Visual C++ / MFC Forum | 0 | 06-Nov-2006 06:51 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The