Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to write an interactive C++ program that prompts the user for seven (9) real numbers and performs the following tasks: Reads and

You are required to write an interactive C++ program that prompts the user for seven (9) real numbers and performs the following tasks:

Reads and stores the numbers into one-dimensional array called A.
Calculates the sum of the numbers that are greater than 6.
Finds the average of the numbers that are less than 6.
Finds the smallest value of the numbers.
Finds the some of the even numbers.
Prints all the results with proper headings.
Program requirements:

-     The program must contain six functions using necessary parameters.  These functions should read the data, perform the above tasks, and print the results.

-     The program must be fully documented.

-     You must submit hard and digital copies of the source and a properly labeled output.          

-     Test your program for different values using real numbers.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres a basic outline of how you could structure your interactive C program to meet the requirements include const int ARRAYSIZE 9 Function prototypes ... 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_2

Step: 3

blur-text-image_3

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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions

Question

=+ What is Pats minimax choice?

Answered: 1 week ago