Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Starting with the following code, follow the steps below. Please note, we're using code::blocks and the GNU GCC Compiler. #include #include int main() { system(pause)

Starting with the following code, follow the steps below. Please note, we're using code::blocks and the GNU GCC Compiler.

#include #include

int main() { system("pause") return 0; }

  1. Above main(), where appropriate, create a constant for the size of the array in step 2.
  2. In main(), create an array called grade using the constant from step 1 and initialize it to zero.
  3. Below main(), create a function called getData(), which takes and processes an array called array along with its size, and fills it with numbers given by the user. Use an array reference, not a pointer, and do NOT use a constant for this function. Also, the function does not return anything.
  4. In main(), call getData() passing the grade array and its size to the function.
  5. Below main(), create a function called displayData(), which takes and processes an array called array along with its size, and retrieves and displays the values from the array to the screen formatted professionally with decimal points aligned if appropriate. Use an array reference, not a pointer, and do NOT use a constant for this function. Also, the function does not return anything.
  6. In main(), call displayData() passing the grade array and its size to the function.
  7. In main(), using a for loop, display the data in the grade array. Do NOT use the function displayData() for this step.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions