Learning Coral... someone help me out

Joined
May 31, 2022
Messages
385
Reputation
57
Daps
620
Someone assist with this, I go to WGU and I'm kinda learning the basics still.

Iterating through arrays. How do I do this and calculate the numbers? basically how does the formula work?
 
Joined
Nov 12, 2014
Messages
20,225
Reputation
2,087
Daps
34,016
Reppin
UK/DE
Someone assist with this, I go to WGU and I'm kinda learning the basics still.

Iterating through arrays. How do I do this and calculate the numbers? basically how does the formula work?

using Simulator

Code:
integer array(5) x
integer max
integer i

for i = 0; i < x.size; i = i + 1
   x[i] = Get next input

max = x[0]

for i = 1; i < x.size; i = i + 1
   if x[i] > max
      max = x[i]
      
Put max to output


Screenshot-2022-07-18-at-06-21-31.png
 
Joined
May 31, 2022
Messages
385
Reputation
57
Daps
620
Thanks my instructor doesn't even care if we code or not he wants us to just pass the test and move onto the next class.

I'm getting it down more appreciate the drop.
 
Top