Question: Answer each of the short programming questions: Declare an array dynamically that can store N number of data, N is a variable and user input.

  1. Answer each of the short programming questions:
  1. Declare an array dynamically that can store N number of data, N is a variable and user input. (4 points)

  1. Write the function prototype (function declaration only) of a function that takes two input parameters: an array of floating point number A and its size N (an integer) and computes and returns two outputs: max and min, both floating point numbers. (3 points)

  1. The pseudocode for GCD computation of two integers a and b is given as below:

GCD (a, b)

while b != 0

c = a mod b

a = b

b = c

return a

Define the function GCD to implement the above pseudocode. (8 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!