Question
Answer each of the short programming questions in C++: a) Declare an array dynamically that can store N number of data, N is a variable
Answer each of the short programming questions in C++:
a) Declare an array dynamically that can store N number of data, N is a variable and user input. (4 points)
b) 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)
c) 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started