Question: Problem 1 a) write a C++ program that accept 2 arrays of same dimensions and print the twisted (top elements of first array sum with
Problem 1
a) write a C++ program that accept 2 arrays of same dimensions and print the "twisted "(top elements of first array sum with last elements second array) of sum of the array.
b) Write a C++ program that accept a 2 dimensional array of n rows and m column and print the average of all entries in the array.
c) A golf ball is dropped from an airplane. The distance it has fallen in t sec d = 1/2 gt^2, where g = 32ft/sec^2. Write a C++ program that accepts a number n of sec from the user and for each sec it prints the distance travelled in that sec and the cumulative distance at the end of that sec.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
