Dr Nick

(4)

$14/per page/Negotiable

About Dr Nick

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Art & Design,Computer Science See all
Art & Design,Computer Science,Engineering,Information Systems,Programming Hide all
Teaching Since: May 2017
Last Sign in: 339 Weeks Ago, 5 Days Ago
Questions Answered: 19234
Tutorials Posted: 19224

Education

  • MBA (IT), PHD
    Kaplan University
    Apr-2009 - Mar-2014

Experience

  • Professor
    University of Santo Tomas
    Aug-2006 - Present

Category > Programming Posted 02 Aug 2017 My Price 14.00

void RandomArrayFill(int* array, int size);

Write a function called RandomArrayFill that inputs (i.e., takes a parameter) an integer array, and also that inputs (i.e., takes a parameter) an integer, which contains the size of the array. The function is then to write a random number, in the range [0, 100], to each element of the array. The function declaration of this function should look like so:

 

Now write a program that asks the user to input the size of an integer array. The program then needs to create an array of exactly this size. Next, the program must pass this created array to theRandomArrayFill function, so that a random number is assigned to each element of the array. After which, the program must output every array element to the console window. Your program output should look similar to this:

Enter the size of an array to create: 6

Creating array and filling it with random numbers... Array = {57, 23, 34, 66, 2, 96}

Press any key to continue

After you finish implementing the above function, rewrite it again, but this time using std::vector. The function declaration of this new function should look like so:

void RandomArrayFill(std::vector& vec);

Answers

(4)
Status NEW Posted 02 Aug 2017 01:08 PM My Price 14.00

----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------amÂ----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------

Not Rated(0)