Jump to content
7 minutes ago, straight_stewie said:

 

But I repeat myself.

I understand, but what if the number is not less than min (number < min)? Then number = 0?

Instructions for frustration management:  

1) Sit at desk.   2) Repeatedly slam forehead against desk.

 

I never said I was smart, just smart enough to be dangerous.

 

 

ORLY?

……..'|:::::::,': : : : : : :_„„-: : : : : : : : ~--„_: |'
………|::::::|: : : „--~~'''~~''''''''-„…_..„~''''''''''''¯|
………|:::::,':_„„-|: : :_„---~: : :|''¯¯''''|: ~---„_: ||
……..,~-,_/'': : : |:    ͡° ͜ʖ ͡°) : |: : : :|:  ( ͡° ͜ʖ ͡°)): \..|
……../,'-,: : : : : ''-,_______,-'': : : : ''-„_____|
……..\: :|: : : : : : : : : : : : : :„: : : : :-,: : : : : : : ?
………',:': : : : : : : : : : : : :,-'__: : : :_',: : : : ;: ,'
……….'-,-': : : : : :___„-: : :'': : ¯''~~'': ': : ~--|'
………….|: ,: : : : : : : : : : : : : : : : : : : : : :: :
………….'|: \: : : : : : : : -,„_„„-~~--~--„_: :: |
…………..|: \: : : : : : : : : : : :-------~: : : : : |
You have been visited by the propane god, I tell ya hwat. Repost this on 5 more profiles or Hank Hill will bring the propain.

- credit to, @Cinnabar Sonar

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11035228
Share on other sites

Link to post
Share on other sites

You need to set min and max to first input number by the user.

 

If max === 0 then min and max === user input.

 

Then your following loop will function just fine.

 

15 input

Max is 0 set min,max input

95 input 

If input > max

    Max = input

Else if min > input 

    Min = input .

Else input are the same. (Saves in needed changing of variables)

 

 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11035573
Share on other sites

Link to post
Share on other sites

8 hours ago, vorticalbox said:

You need to set min and max to first input number by the user.

 

If max === 0 then min and max === user input.

 

Then your following loop will function just fine.

 

15 input

Max is 0 set min,max input

95 input 

If input > max

    Max = input

Else if min > input 

    Min = input .

Else input are the same. (Saves in needed changing of variables)

 

 

I don't quite follow. Is there a way to compare data in flowgorithm?

Instructions for frustration management:  

1) Sit at desk.   2) Repeatedly slam forehead against desk.

 

I never said I was smart, just smart enough to be dangerous.

 

 

ORLY?

……..'|:::::::,': : : : : : :_„„-: : : : : : : : ~--„_: |'
………|::::::|: : : „--~~'''~~''''''''-„…_..„~''''''''''''¯|
………|:::::,':_„„-|: : :_„---~: : :|''¯¯''''|: ~---„_: ||
……..,~-,_/'': : : |:    ͡° ͜ʖ ͡°) : |: : : :|:  ( ͡° ͜ʖ ͡°)): \..|
……../,'-,: : : : : ''-,_______,-'': : : : ''-„_____|
……..\: :|: : : : : : : : : : : : : :„: : : : :-,: : : : : : : ?
………',:': : : : : : : : : : : : :,-'__: : : :_',: : : : ;: ,'
……….'-,-': : : : : :___„-: : :'': : ¯''~~'': ': : ~--|'
………….|: ,: : : : : : : : : : : : : : : : : : : : : :: :
………….'|: \: : : : : : : : -,„_„„-~~--~--„_: :: |
…………..|: \: : : : : : : : : : : :-------~: : : : : |
You have been visited by the propane god, I tell ya hwat. Repost this on 5 more profiles or Hank Hill will bring the propain.

- credit to, @Cinnabar Sonar

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11036468
Share on other sites

Link to post
Share on other sites

2 hours ago, dual290x said:

I don't quite follow. Is there a way to compare data in flowgorithm?

So basically you need assign min and max to the first input then do your loop for input after that.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11036860
Share on other sites

Link to post
Share on other sites

6 hours ago, dual290x said:

I don't quite follow. Is there a way to compare data in flowgorithm?

Yes. The same way you compare a boolean to the constant true or false.

Trivially, Flowgarithm would not be Turing complete if it had only it's feature set and no conditional branching.

I guess I don't quite understand the question.

ENCRYPTION IS NOT A CRIME

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11037729
Share on other sites

Link to post
Share on other sites

7 hours ago, vorticalbox said:

 

 

3 hours ago, straight_stewie said:

 

Thanks to my instructor being oh so kind (finally giving up and almost giving me the answer) I got it figured out. It makes sense though, I have the photo here. Thank you so much for your patience.

 

fcbmbfc.png

Edited by dual290x

Instructions for frustration management:  

1) Sit at desk.   2) Repeatedly slam forehead against desk.

 

I never said I was smart, just smart enough to be dangerous.

 

 

ORLY?

……..'|:::::::,': : : : : : :_„„-: : : : : : : : ~--„_: |'
………|::::::|: : : „--~~'''~~''''''''-„…_..„~''''''''''''¯|
………|:::::,':_„„-|: : :_„---~: : :|''¯¯''''|: ~---„_: ||
……..,~-,_/'': : : |:    ͡° ͜ʖ ͡°) : |: : : :|:  ( ͡° ͜ʖ ͡°)): \..|
……../,'-,: : : : : ''-,_______,-'': : : : ''-„_____|
……..\: :|: : : : : : : : : : : : : :„: : : : :-,: : : : : : : ?
………',:': : : : : : : : : : : : :,-'__: : : :_',: : : : ;: ,'
……….'-,-': : : : : :___„-: : :'': : ¯''~~'': ': : ~--|'
………….|: ,: : : : : : : : : : : : : : : : : : : : : :: :
………….'|: \: : : : : : : : -,„_„„-~~--~--„_: :: |
…………..|: \: : : : : : : : : : : :-------~: : : : : |
You have been visited by the propane god, I tell ya hwat. Repost this on 5 more profiles or Hank Hill will bring the propain.

- credit to, @Cinnabar Sonar

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11038222
Share on other sites

Link to post
Share on other sites

5 hours ago, dual290x said:

 

Thanks to my instructor being oh so kind (finally giving up and almost giving me the answer) I got it figured out. It makes sense though, I have the photo here. Thank you so much for your patience.

 

fcbmbfc.png

All that works but now your system can't support say floats.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11039070
Share on other sites

Link to post
Share on other sites

10 hours ago, dual290x said:

Thanks to my instructor being oh so kind (finally giving up and almost giving me the answer) I got it figured out. It makes sense though, I have the photo here. Thank you so much for your patience.

Also, If I enter the first number as a negative number I get some garbage back for min and max.

 

5 hours ago, vorticalbox said:

All that works but now your system can't support say floats.

I can't come up with a way to convert between data types and the language only offers bool, int, real, and string as primitives. It's also not OO, so defining a custom data type would be, very difficult.

What he has is almost as good as it can get (see above).

ENCRYPTION IS NOT A CRIME

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11039598
Share on other sites

Link to post
Share on other sites

14 hours ago, straight_stewie said:

Also, If I enter the first number as a negative number I get some garbage back for min and max.

 

I can't come up with a way to convert between data types and the language only offers bool, int, real, and string as primitives. It's also not OO, so defining a custom data type would be, very difficult.

What he has is almost as good as it can get (see above).

The negative number is needed to quit, that is why it is there. Flowgorithm is mostly to make sure your logic is good before you write the code. It's a pain in the @$$ but it does help make it clear.

19 hours ago, vorticalbox said:

All that works but now your system can't support say floats.

Well this was only meant for real numbers or integers. That is all the instructor wanted.

Instructions for frustration management:  

1) Sit at desk.   2) Repeatedly slam forehead against desk.

 

I never said I was smart, just smart enough to be dangerous.

 

 

ORLY?

……..'|:::::::,': : : : : : :_„„-: : : : : : : : ~--„_: |'
………|::::::|: : : „--~~'''~~''''''''-„…_..„~''''''''''''¯|
………|:::::,':_„„-|: : :_„---~: : :|''¯¯''''|: ~---„_: ||
……..,~-,_/'': : : |:    ͡° ͜ʖ ͡°) : |: : : :|:  ( ͡° ͜ʖ ͡°)): \..|
……../,'-,: : : : : ''-,_______,-'': : : : ''-„_____|
……..\: :|: : : : : : : : : : : : : :„: : : : :-,: : : : : : : ?
………',:': : : : : : : : : : : : :,-'__: : : :_',: : : : ;: ,'
……….'-,-': : : : : :___„-: : :'': : ¯''~~'': ': : ~--|'
………….|: ,: : : : : : : : : : : : : : : : : : : : : :: :
………….'|: \: : : : : : : : -,„_„„-~~--~--„_: :: |
…………..|: \: : : : : : : : : : : :-------~: : : : : |
You have been visited by the propane god, I tell ya hwat. Repost this on 5 more profiles or Hank Hill will bring the propain.

- credit to, @Cinnabar Sonar

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11042299
Share on other sites

Link to post
Share on other sites

4 minutes ago, dual290x said:

The negative number is needed to quit, that is why it is there. Flowgorithm is mostly to make sure your logic is good before you write the code. It's a pain in the @$$ but it does help make it clear.

I know that, but if, say, as my frist response I input -1, instead of being zero or null, my min and max values are now -2465461 and 10000000.

ENCRYPTION IS NOT A CRIME

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11042315
Share on other sites

Link to post
Share on other sites

Just now, straight_stewie said:

I know that, but if, say, as my frist response I input -1, instead of being zero or null, my min and max values are now -2465461 and 10000000.

That is because the negative number is smaller than 0, so there for, it skips the while loop showing the min and max assigned expressions. I don't agree with my instructor on how the end product should be... but he is the one who gives a bad grade when it isn't like he said it should be.

 

While I have you, do you know how I get flowgorithm to output real numbers... for example 25.00?

Instructions for frustration management:  

1) Sit at desk.   2) Repeatedly slam forehead against desk.

 

I never said I was smart, just smart enough to be dangerous.

 

 

ORLY?

……..'|:::::::,': : : : : : :_„„-: : : : : : : : ~--„_: |'
………|::::::|: : : „--~~'''~~''''''''-„…_..„~''''''''''''¯|
………|:::::,':_„„-|: : :_„---~: : :|''¯¯''''|: ~---„_: ||
……..,~-,_/'': : : |:    ͡° ͜ʖ ͡°) : |: : : :|:  ( ͡° ͜ʖ ͡°)): \..|
……../,'-,: : : : : ''-,_______,-'': : : : ''-„_____|
……..\: :|: : : : : : : : : : : : : :„: : : : :-,: : : : : : : ?
………',:': : : : : : : : : : : : :,-'__: : : :_',: : : : ;: ,'
……….'-,-': : : : : :___„-: : :'': : ¯''~~'': ': : ~--|'
………….|: ,: : : : : : : : : : : : : : : : : : : : : :: :
………….'|: \: : : : : : : : -,„_„„-~~--~--„_: :: |
…………..|: \: : : : : : : : : : : :-------~: : : : : |
You have been visited by the propane god, I tell ya hwat. Repost this on 5 more profiles or Hank Hill will bring the propain.

- credit to, @Cinnabar Sonar

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11042325
Share on other sites

Link to post
Share on other sites

5 minutes ago, dual290x said:

While I have you, do you know how I get flowgorithm to output real numbers... for example 25.00?

I do not. The documentation is not anywhere near complete and my only exposure to it is working on your problem.

ENCRYPTION IS NOT A CRIME

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11042338
Share on other sites

Link to post
Share on other sites

1 minute ago, straight_stewie said:

I do not. The documentation is not anywhere near complete and my only exposure to it is working on your problem.

Okay, thanks. It is a different assignment and I had no idea if you were familiar enough with it. Thanks man!

Instructions for frustration management:  

1) Sit at desk.   2) Repeatedly slam forehead against desk.

 

I never said I was smart, just smart enough to be dangerous.

 

 

ORLY?

……..'|:::::::,': : : : : : :_„„-: : : : : : : : ~--„_: |'
………|::::::|: : : „--~~'''~~''''''''-„…_..„~''''''''''''¯|
………|:::::,':_„„-|: : :_„---~: : :|''¯¯''''|: ~---„_: ||
……..,~-,_/'': : : |:    ͡° ͜ʖ ͡°) : |: : : :|:  ( ͡° ͜ʖ ͡°)): \..|
……../,'-,: : : : : ''-,_______,-'': : : : ''-„_____|
……..\: :|: : : : : : : : : : : : : :„: : : : :-,: : : : : : : ?
………',:': : : : : : : : : : : : :,-'__: : : :_',: : : : ;: ,'
……….'-,-': : : : : :___„-: : :'': : ¯''~~'': ': : ~--|'
………….|: ,: : : : : : : : : : : : : : : : : : : : : :: :
………….'|: \: : : : : : : : -,„_„„-~~--~--„_: :: |
…………..|: \: : : : : : : : : : : :-------~: : : : : |
You have been visited by the propane god, I tell ya hwat. Repost this on 5 more profiles or Hank Hill will bring the propain.

- credit to, @Cinnabar Sonar

Link to comment
https://linustechtips.com/topic/895533-flowgorithm-help/page/2/#findComment-11042347
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×