Write these in Pseudocode #1a – In pseudocode, write a call to a function that passes 1 Integer variable and 1 Integer array, and saves a Boolean value in return. #1b – In pseudocode, write the function that accepts 1 Integer and 1 Integer array and returns a Boolean. In the function, search the Integer array with a for-loop, and if the Integer parameter is found in the array, return false. If the Integer parameter is not found, return true. #2a – In pseudocode, write a call to a module that passes 1 Integer variable, 1 Real variable, 1 String constant, and 1 String literal as arguments. #2b – In pseudocode, write the module header that accepts 1 Integer, 1 Real, and 2 Strings as parameters. #3 – This pseudocode has multiple problems. Fix the calling statement and the definition below so that the routine accepts 3 grades as parameters and returns the average into a variable. Call calcPercentageof(Boolean Number) Module calcPercentageOf (numerator, num2) Set percentage = num / num2 * 100 End Module
Write these in Pseudocode
#1a – In pseudocode, write a call to a function that passes 1 Integer variable and 1 Integer array, and saves a Boolean value in return.
#1b – In pseudocode, write the function that accepts 1 Integer and 1 Integer array and returns a Boolean.
In the function, search the Integer array with a for-loop, and if the Integer parameter is found in the array, return false. If the Integer parameter is not found, return true.
#2a – In pseudocode, write a call to a module that passes 1 Integer variable, 1 Real variable, 1 String constant, and 1 String literal as arguments.
#2b – In pseudocode, write the module header that accepts 1 Integer, 1 Real, and 2 Strings as parameters.
#3 – This pseudocode has multiple problems. Fix the calling statement and the definition below so that the routine accepts 3 grades as parameters and returns the average into a variable.
Call calcPercentageof(Boolean Number)
Module calcPercentageOf (numerator, num2)
Set percentage = num / num2 * 100
End Module
Write the correct call statement and module definition below:
#4 – In pseudocode, write a for-loop that decreases from 100 to 2 by 2s. Inside the loop, print the value of the loop variable unless the value is from 60 to 80 (inclusive). Use only 1
if-statement. Do NOT write Python code!
Write your answer below:
#5 – Review the decision structure given below.
If myAnswer > 20 Then
myAnswer = myAnswer - 25
Else If myAnswer <= 5 Then
If myAnswer < 0 Then
myAnswer = 10
If myAnswer < 3 Then
myAnswer += 10
Else
myAnswer += 1
Else
myAnswer = 9
If myAnswer < 10 Then
myAnswer += 1
Display myAnswer
What are the results displayed when the decision structure above executes for each given value below:
If myAnswer = 6 then myAnswer =
myAnswer = 15 then myAnswer =
myAnswer = 30 then myAnswer =
myAnswer = 2 then myAnswer =
myAnswer = -1 then myAnswer =
Trending now
This is a popular solution!
Step by step
Solved in 7 steps with 5 images