Link to home
Start Free TrialLog in
Avatar of edvinson
edvinsonFlag for United States of America

asked on

Finding an array of averages ?? Newbie here

I am writing a program that a decision needs to be made, and I need help with.

I have a range of numbers ( actually ASCII values ) from:

97 to 122 ( representing a-z )

The user will be entering six (6) letters as an answer.

Somehow, I need SIX branches of decisions to be made based upon the sum of their answer.

Here is my pseudocode ( remember I need 6 branches ) - and my pseudocode will be using low, wrong numbers just for example:

if answer>100 and answer < 200)
   DO THIS, BRANCH #1

if answer >200 and answer<300
   DO THIS, BRANCH #2

etc.

I dont know how to take the six characters entered ( adding up their AsCII values ) and determine how to break it up into six branches! I would like the branches to be equal in their span, but they don't have to be.

Can someone help me in determining the six branchevalues???

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial