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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started