Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

A more detail description is attached: Write a C++ program that declares an arrayalphaof 50 components of typedouble. Initialize the array so that the first 25 components are equal to the square of...

1 answer below »
A more detail description is attached:

Write a C++ program that declares an arrayalphaof50components of typedouble. Initialize the array so that the first 25 components are equal to the square of the index variable (the position that element will occupy), and the last 25 components are equal to three times the index variable. Output the array so that 10 elements per line are printed.

For the number at index 5, the value would be 25, which is 5 squared. The 25th index would hold a value of 75, which is 3 * 25.

An example of the program output is shown below:

XXXXXXXXXX64 81

XXXXXXXXXX XXXXXXXXXX

XXXXXXXXXX XXXXXXXXXX

XXXXXXXXXX XXXXXXXXXX

XXXXXXXXXX XXXXXXXXXX

Answered 1 days After Dec 02, 2021

Solution

Arun Shankar answered on Dec 04 2021
104 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here