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

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
icon
Related questions
Question

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 =   

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 7 steps with 5 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,