Question: only use array and loop and if/else condition.. don't use interception or vector because i am a beginner so make the program only beginner level.

only use array and loop and if/else condition.. don't use interception or vector because i am a beginner so make the program only beginner level.

only use array and loop and if/else condition.. don't use interception or

vector because i am a beginner so make the program only beginner

level. # create an array of size twelve; get input from user.

# create an array of size twelve; get input from user. Create another array of size 6. Calculate the difference between every two neighbors [first and second element, second - first] of first array and store that difference in array two one by one. At the end, show array two with appropriate message. Please enter 12 numbers 12 54 25 62 -10 95 23 45 11 9 16 34 The difference between every two elements of array one is Pair 1 42 Pair 2 37 Pair 3 105 Pair 4 22 Pair 5-2 Pair 6 18 # Create an array of size twelve; get input from user, calculate the sum of every two neighbors [first and second element] of the array and show it on the screen with appropriate message. Find the largest sum of neighbors in this array. Find the largest sum of the neighbors in this array. Show both on the screen with appropriate message. Please enter 12 numbers 12 54 25 62 -10 95 23 45 11 9 16 34 Sum for element 1 and 2 is 66 Sum for element 3 and 4 is 87 Sum for element 5 and 6 is 85 Sum for element 7 and 8 is 68 Sum for element 9 and 10 is 20 Sum for element 11 and 12 is 50 Max sum of neighbors in array is 87 of element 3 and 4 # create an array of size twelve; get input from user. Create another array of size 6. Calculate the sum of every two neighbors [first and second element] of array one and store that sum in array two one by one. Show array two with appropriate message. Find the smallest and the largest value in array two and show on the screen with the message. Please enter 12 numbers 12 54 25 62 -10 95 23 45 11 9 16 34 The sum of every two elements of array one is Pair 1 66 Pair 2 87 Pair 3 85 Pair 4 68 Pair 5 20 Pair 6 50 Min sum of neighbors in array is 20 of element 9 and 10 Max sum of neighbors in array is 87 of element 3 and 4

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!