GIDForums  

Go Back   GIDForums > Computer Programming Forums > Miscellaneous Programming Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 06-Mar-2008, 11:23
justinflo200 justinflo200 is offline
New Member
 
Join Date: Mar 2008
Posts: 1
justinflo200 is on a distinguished road

Flowchart creation


Hey 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  
Old 06-Mar-2008, 11:41
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 440
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: Flowchart creation


You 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  
Old 06-Mar-2008, 13:52
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,234
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: Flowchart creation


Quote:
Originally Posted by justinflo200
Hey 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.
Going rate is $65 an hour. It'll take about 2.5 hours to make it (15 minutes to do the chart and 2.25 hours to make sure the pictures are perfectly formed and color coded).

__________________

Cow: You're a lawyer too?
Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase!
  #4  
Old 06-Mar-2008, 20:59
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,534
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: Flowchart creation


Out 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 GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 06:24.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.