Answered You can hire a professional tutor to get the answer.

QUESTION

Given the following Pseudo Code, answer the questions below:

1.Given the following Pseudo Code, answer the questions below:  (5 points)

integer count = 0

integer max = 5

// allocate the array

integer numbers[max] 

while (count < max)

numbers[count] = count * 3

count = count + 2

endwhile

A.)What is the name of the array? __________________        B.)How many elements are in the array? ____ ___

At the end of the execution of the program:

C.)What is the value of count? __________________

D.)Draw a picture of the array and what it contains: 

2.Given the following Pseudo Code, answer the questions below:  (5 points)

integer index = 0

integer max = 7

// allocate the array

integer x[max]

while (index < max)

x[index] = index + 2

index = index + 3

endwhile

A.)What is the name of the array? __________________        B.)How many elements are in the array? ____ ___

At the end of the execution of the program:

C.)What is the value of count? __________________

D.)Draw a picture of the array and what it contains: 

14.Write a pseudocode declaration for a String array initialized with the following strings:"Einstein", "Newton", "Copernicus", and "Kepler".

15.Assume names in an Integer array with 20 elements. Design a For loop that displays each element of the array.16.Write a pseudocode algorithm that uses the For Each loop to display all of the values in the following array:Constant Integer SIZE = 10Declare Integer values [SIZE] = 1, 2,  3,  4,  5,  6,  7,  8,  9, 10

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question