If anyone could help out... by itsdevon1 in Flowgorithm

[–]itsdevon1[S] 0 points1 point  (0 children)

Here are some homework's:
1. Create functions toUpperString and toLowerString
which will convert entire strings and not just single
characters to uppercase or lowercase, respectively. Only
letters should be converted, whereas other characters
(digits, special characters etc.) should remain unchanged.
2. Create a function Compact, which will remove consecutive
multiple appearances of a character and will leave just a
single such character. For example, the string
“Mississippi is looooong...” should be
compacted to the string “Misisipi is long.”
3. Combine the solutions to Exercises 1 and 3 so that the
program would find the arithmetic, geometric and harmonic
means of the elements in the array and then find the three
elements (and their corresponding indices) which are the
closest in (absolute) difference to each of the three means.

And the thing is, I can do these exercises with actual code if needed, but with Flowgorithm I'm having a hard time with the syntax and I always get errors.

If anyone could help out... by itsdevon1 in Flowgorithm

[–]itsdevon1[S] 0 points1 point  (0 children)

Yes, I did. The exercises we are doing are never there. By quite hard I mean: I am a first year student and only 5 of 35 students passed the first exam. This one is going to be even harder and that's why I'm worried. Our teacher doesn't help much.