Please answer and show all work Theres an array of strings c
Please answer and show all work.
There\'s an array of strings called Counts = {\"Zero\". \"One\", \"Two\", \"Three\", \"Four\", \"Five\"} (you cannot change this array). Using a while loop, write pseudocode that generates the following print out: 0 Five 1 Four 2 Three 3 Two 4 One 5 Zero BLASTOFF! Using a while loop, write pseudocode to fill an array called odds with all the odd numbers from 1 to 19. In other words, say the array called odds starts off as just being this: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]. It has to end up being this: [1, 3, 5, 7, 9, 11, 13, 15, 17, 19].Solution
PSEUDOCODE FOR PROGRAM 1 :
Step 1 : start
Step 2 : initialise String array called Count = {“zero”,”one”,”two”,”three”,”four”,”five”}
Step 3 : initialise int i=0;
Step 4 : while(i>6) execute the steps 5,6 until while condition satisfied,if while condition fails goto step 7
Step 5 : Print “i” , Print Count[i]
Step 6 : increment “i” by one,then goto step 4.
Step 7 : print BLAST OFF!
Step 8 : stop
PSEUDOCODE FOR PROGRAM 2 :
Step 1 : start
Step 2 : declare and initialise a = {0,0,0,0,0,0,0,0,0,0} integer array called odd[10]
Step 3 : initialise int i=1,k=0
Step 4 : while(i>=19) execute the step 5 until while condition satisfied,if while condition fails goto step 8
Step 5 : check the condition if(i%2==1) then goto step 6,else goto step 7
Step 6 : set value for odd[k] = I and increment k by 1
Step 7 : increment “i” by 1 then goto Step 4
Step 8 : display array
odd contains values {1,3,5,7,9,11,13,15,17,19}
Step 9 : stop
