12-19-2020 10:35 PM
I am tasked to create a program that executes a particular mathematical operation on an inputted number (Q) for each index of a particular array. For instance, since i is 0, the program is to show in the first index the square of the inputted number (Q^2). For the next iteration, the second index is this input multiplied by 5, for instance. If this program were to only repeat twice, then the finished array would look something like this (say, if Q = 10):
100
50
I know how to set up a case structure with a comparison equality operator for one iteration but I am honestly lost on what to add to the program to satisfy i = 1, 2, 3 and so on. I attached a screenshot of what I have so far. Any help would be greatly appreciated!
Solved! Go to Solution.
12-20-2020 12:09 AM
Wire i to the selector terminal of the case structure.
12-20-2020 12:02 PM
Great. I think I figured that part out. How do I program it so that on the front panel there is an array of numbers produced by this program rather than one indicator displaying all of the results?
12-20-2020 12:40 PM
Scratch that, I think I have it figured out.