Question: Q1: Q2: Write a C++ program that declares an array alpha of 50 components of type integer. Initialize the array so that the first 25
Q1:

Q2:

Write a C++ program that declares an array alpha of 50 components of type integer. Initialize the array so that the first 25 components are equal to the square of the index variable, and the last 25 components are equal to the index -3 (e.g if the index = 33, the component = 30). Output the array so that 10 elements per line are printed. Print your name at the end of your program. Write a C++ function, smallestindex, that takes as parameters an int array and its size and returns the index of the first occurrence of the smallest element in the array. Print your name at the end of your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
