d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Beginning Computer Science Question > Paying Fg For Help
Add Reply New Topic New Poll
Member
Posts: 12,155
Joined: Mar 25 2006
Gold: 2,154.00
Oct 11 2013 03:13pm
I have a project to do and my professor is asking the following:

Write one flow chart that reads colors from the user until the color of your hair (from project 1) is entered, once your hair color is entered it should output to the user that the correct color was input. Then it should read colors from the user til a color that is not brown is input. When that color is input it should out "success!" and terminate.

What I am confused about is "til a color that is not brown is input".

My hair color is 13) 242,218,145 RBG color code or blonde

Basically I think I would start like this.

Start
hair color
is the color red? - no/yes - if no terminate if yes correct - no terminate
is the color black? - no/yes - if no terminate if yes correct - no terminate
is the color blonde? -no/yes - if no terminate if yes correct - yes correct

Now when he asks til a color that is not brown is input. would that be all colors that aren't brown?

Thanks in advance for the help.
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Oct 11 2013 03:32pm
Quote (JoeKer @ Oct 11 2013 04:13pm)
when he asks til a color that is not brown is input. would that be all colors that aren't brown?

yes
Member
Posts: 12,155
Joined: Mar 25 2006
Gold: 2,154.00
Oct 11 2013 03:36pm
Quote (0n35 @ Oct 11 2013 02:32pm)
yes


Okay so all colors but brown, and blonde should read something like.
Is the color red? - no/yes - if no - output Success! - terminate

Is the color brown? - no/yes - if no - terminate?

Thanks for your help.

edit:
Okay so I'm getting way to confused on this.

Is the color red? - no - output "success" - Terminate
Is the color red? - yes - do i put this? Since the only color it could be is blonde..?

or Is it simply just like this?
Is the color red? - yes - Output "succes!" - Terminate
Is the color red? - no - terminate?
or
Is the color red? - no - ???

I'm confusing the shit out of myself.

This post was edited by JoeKer on Oct 11 2013 03:51pm
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Oct 12 2013 10:38am
I lost a few braincells reading this thread.

Your professor wants you to play the game of "Guess Who".

1. Write one flow chart that reads colors from the user until the color of your hair (from project 1) is entered
- Is your hair [any color not blond]? No.

2. Once your hair color is entered it should output to the user that the correct color was input.
- Is your hair blond? Correct!

3. Then it should read colors from the user til a color that is not brown is input.
- Is it the color brown? No.

4. When that color is input it should out "success!" and terminate.
- Is the color [any color not brown]? Success!

In pseudo code, this is something like:
Code
input = getInput()
step = 1
if(step == 1)
if(input == 'blond')
output 'Correct!'
step = 2
else output 'No.'

if(step == 2)
if(input != 'brown')
output 'Success!'
else output 'No.'


As compensation for the braincells lost, I do require that fg reward. This goes for even if you solved it on your own, because fuck people who ask for peoples time and not update the thread that the work is complete when it has been.

This post was edited by eagl3s1ght on Oct 12 2013 10:46am
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Oct 12 2013 10:47am
Quote (eagl3s1ght @ Oct 12 2013 12:38pm)
As compensation for the braincells lost, I do require that fg reward.


sniffing rubber cement is a more rewarding method of losing brain cells. smells so good.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll