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

Problem: Write a program that prompts the user to enter 5 integersthat you store

ID: 3609459 • Letter: P

Question

Problem: Write a program that prompts the user to enter 5 integersthat you store in an array. Write a function called quadruple()that takes the size of the array as a second argument. The functionmultiplies each value by 4 and returns nothing to the callingprogram. Display the quadrupled results from within the main ()function.

Ok this is time I am really lost and have no idea what to do. Idon't do well with arrays and when they are combined with functionsjust make it worse for me. The text that I have is a bit vague onthe subject. So I wold appreciate if someone could show me how todo this problem. I am seriously stuck here.

This is what I have so far (almost nothing)

#include<iostream>
#include<conio.h>

using namespace std;

int main()
{
   const int SIZE = 5;
   int num[SIZE] = {};
   void quadruple(num, int[5]);
   
}

The reason I am stuck is because I cannot figure out how to assignthe array 5 int variables that the user determines

int num[SIZE] = {};

Could someone please tell me how I should proceed to solve thisproblem. If you do I will award life saver points. Thanks.



Explanation / Answer

please rate - thanks assignment says prompt the user to enter the numbers #include #include #include using namespace std; void quadruple(int[],int); int main() {     const int SIZE = 5;     int num[SIZE],i;     for(i=0;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