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

Write a function to multiply integers i and j using int pointers as input. Write

ID: 3578441 • Letter: W

Question


Write a function to multiply integers i and j using int pointers as input. Write a function that returns the positive of the largest element of a global integer array a of length 200. Write a function than returns the average of all the elements in a global array a of double. Write a void function that prints all the elements of a global integer array of length n, live to a line. Write a boolean function that returns true if an integer is divisible by 11, false if not. Write a few lines of code that will upon a file and read the first line of the file into inline which is a character array of length 100. What kind of file is a csv file?

Explanation / Answer

5. int multiply(int *a ,int *b)

{

int c;

*a=(*a)* (*b);

cout<<*a;

}

6. int largest(int arr[20])

{

int i,max,index;

max=a[0];index=0;

for(i=1;i<20;i++)

{

if(a[i]>max)

{

max=a[i];

index=i;

}

}

return index;

}

7.int averagee(double dr[])

{

int i,size,avg,sum;

size=sizeof(dr)/sizeof(dr[0]);

for(i=0;i<size;i++)

{

sum=sum+dr[i];

}

avg= sum/size;

return avg;

}

8. void printing(int arrr[])

{

int i,size;

size=sizeof(arrr)/sizeof(arrr[0]);

for(i=0;i<size;i++)

cout<<arrr[i];

}

9. bool check(int a)

{

if(a%11==0)

return true;

else

return false;

}

10. image not so clear. give me the question i will solve it

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