Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A programmer is trying to write a program that addscorresponding elements of two

ID: 3612766 • Letter: A

Question

A programmer is trying to write a program that addscorresponding elements of two arrays of the same size, and storethe

     result into a new array. He has writtenthe following program. Complete the code.

#include <iosteam.h>

int main()

{

               int arrayA[ ] = {12, 36, 18, 21};

               int arrayB[ ] = {16, 24, 27, 30};

               // declare the third arry

               int arrayC[5];

               // add the elements of arrayA and ArrayB and store inarrayC

                               … incomplete

               // output the elements of the array using a pointer

               int* p = &arrayC;

                               … incomplete

               return 0;

}

                                                                                               

D. Write a program that adds 5 to each employee number ofvocation days. Use a function to do theseadjustments            

E. Write a C++ program the user enter a stream of 3 digits andoutputs theirsum                                                

F. Using for, while and do...while statements; write C++programs respectively that count 1 to10                                      

G. Write a C++ program that computes the mathematical table of10*10                                                                               

Explanation / Answer

please rate - thanks cramster rule 1 question per post this is the answer to G #include #include using namespace std; int main() {int i,j,n=10; for(i=1;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote