Answered You can hire a professional tutor to get the answer.

QUESTION

You must use array to demonstrate the following output: Please do not hard code this output. Hard code means to write entire program using COUT...

See the attachment for detailed information.

You must use array to demonstrate the following output:

Please do not hard code this output. Hard code means to write entire program using COUT statements and endl commands. If you hard code, you will receive a zero.

Your program must demonstrate the following.

1. Write two separate void functions: one void function call it “initialized” and the second function call it “print”.

                A. Inside your initialized void function, you will need to pass the list array and size as a formal parameters. Within this functions body, you will need to initialize a variable called count as int datatype. Initialize the array so that the first 25 components are equal to the square of the index variables. The second 25 components are equal to three times the index variable. The third 25 components are equal to four times the index variable. The last 25 components are equal to five times the index variable.

                B. In regards to the print void function, you will need to pass the list array and size as a formal parameters. Output the array so the 10 elements per line are printed. This function requires you to create ten columns with set width of 5 positions. Please use the appropriate commands and pre-processor library files for this alignment.

2. Write your function prototypes for the two functions.

3. Inside the main function, write a C++ programming that declares an array alpha of 100 components of type double, then call the both the functions and pass the appropriate parameters.

Write your code below:

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question