Question: (class is programming logic) **Write the pseudo code in modules for the following questions: Q1) Design the logic of a program that allows a user
(class is programming logic)
**Write the pseudo code in modules for the following questions:
Q1) Design the logic of a program that allows a user to enter 12 numbers, then displays them in reverse order. Use arrays to store numbers. (50POINTS)
Q2) Design the logic of a program that allows a user to enter 12 numbers then displays the largest number. Use arrays to store numbers. (50 POINTS)
Below is the psuedo code I have so far. please type/show the entire revised pseudocode instead of just an explanation of what's wrong with the code so I can have a complete visual understanding of what the code is. Please copy the entire pseudocode and make your edits instead of just the parts you change so I know for certain I am understanding the corrections and where they are placed within the code, thank you.
]
]
Start
Declerations
Num userInput[12] = 0,0,0,0,0,0,0,0,0,0,0,0
Num inputArray
Num outputArray
Getinput()
Display()
Reverse()
GetMax()
Stop
]
]
Getinput()
Num count = 0
While (count<=11)
Output Enter 12 numbers of your choice:
Input userInput[count]
count =count +1
End while
return
]
]
Display()
Import userInput
Output Numbers entered are displayed below:
count = 0
while(count<12)
Output userInput[count]
End while
return
]
]
Reverse()
Output Numbers entered are displayed in reverse order below:
int outputArray[12]
count=0
while(count<12)
outputArray[count]=inputArray[11-count]
End while
return
]
]
GetMax()
count=1
max=inputArray[0]
while(count<12){
if(inputArray[count]>max)
max=inputArray[count]
endif
endwhile
output max
return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
