Question: Instructions Write a C++ program to do the following: Requirements to receive a grade higher than zero Add a comment to your program including name,

Instructions

Write a C++ program to do the following:

Requirements to receive a grade higher than zero

Add a comment to your program including name, date, program name

Output to the screen your name, date, program name,

Submit .cpp file and .jpg showing results

Create a user defined function to print an array

Declare an array named: alpha -with 10 components of type int

Perform the following:

Initialize each component of alpha to 0 using a for loop, then print all components of the array

Set the value of each component from 1 to 10. alpha[0] would be equal to 1, etc. Use a for loop, then print all components of the array.

Sum all components of the array using a for-loop, then print all components of the array.

Multiply each components of the array by 2, then print all components of the array.

Change the value of the first component to 10, the fifth component to 5, remember the index begins with 0.

Replace the last component of the array with the sum of the first and fifth component.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!