before the prototypes, declare a variable const int SIZE { 6}; In main(), call WriteHeader(); Declare an array of 6 integers named numbers. Declare variables for sum and average. Open a do-while or while loop Ask the user to input 6 ints using the function void  AskForInts(int nums[]); Call the function void CalcSumAndAve(int nums[],int &sum, double &ave); to calculate the sum and average. Of the 6 numbers in the array. Then display numbers, sum and average by calling the function void DisplayAll(int nums [], int sum, double ave);

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question

before the prototypes, declare a variable const int SIZE { 6};

In main(), call WriteHeader();

Declare an array of 6 integers named numbers.

Declare variables for sum and average.

Open a do-while or while loop

Ask the user to input 6 ints using the function

void  AskForInts(int nums[]);

Call the function

void CalcSumAndAve(int nums[],int &sum, double &ave);

to calculate the sum and average. Of the 6 numbers in the array.

Then display numbers, sum and average by calling the function

void DisplayAll(int nums [], int sum, double ave);

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
Linked List Representation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,