Question: URGENT! please answer ASAP! Problem 2 - 25 points Write a C++ program that: Declares an array (named A) having a size of 4: Declares
Problem 2 - 25 points Write a C++ program that: Declares an array (named A) having a size of 4: Declares an array (named B) having a size of 4; Asks the user to enter the values of A: Asks the user to enter the values of B; Declares an array (named C) having a size of 4: Assigns values to such that C = 2 . A+3.B: The value at the index i in the array C is equal to: 2 the value at the index i in the array A+3 the value at the index i in the array B; Prints on the screen all the values in C. Example: If the values in A are: 4 9 3 And if the values in Bare: 3 2 7 The values in C must be: 17 24 18 4 27 Problem 3 - 25 points Write a recursive function sumFinalo that takes as parameters an integer n and returns the value of the following sum: Cu(n) = 2 + Cu(n - 1) U(1) = 4 A non-recursive solution will not be graded. For example, U(4) = 2 + U(3); U(3) = 2 + U(2); U(2) = 2 + U(1); and U(1) = 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
