Question: RESPONSE IN C++ ONLY 1. Given an integer array named numbers that contains 22 elements. Write both a regular for loop, as well as a
RESPONSE IN C++ ONLY

1. Given an integer array named numbers that contains 22 elements. Write both a regular for loop, as well as a range-based for loop where both loops display each of the elements in the array. 2. Given two double arrays named valueArray1 and valueArray2 that each have 42 elements, write the C++ code that will copy all the values from valueArray2 to valueArray. 3. Compose the code necessary to declare a string array named countries that can hold up to fifteen entries. Also compose the code to declare an integer array named populations that can also hold up to fifteen entries. These two arrays are intended to be used in parallel. Assume that a different part of the program this code is part of will load values into the parallel arrays you declared. Show the code you created to declare these arrays along with code that will display each of the country's names and their corresponding population values. 4. Is there anything seriously wrong with the following code? If so, explain and provide a remedy. int SIZE = 25; double values[SIZE]; for (int i = 1; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
