Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following code segment: int main() cons int SIZE -20; int values [SIZE] - f0, 23, 34, -7, 110, 42,-350, 424, 25, 99, 10,

image text in transcribed

Consider the following code segment: int main() cons int SIZE -20; int values [SIZE] - f0, 23, 34, -7, 110, 42,-350, 424, 25, 99, 10, 05, 50, -5, 1, 200, -350, 437, 25, 147}; // your code goes here Write a complete program to display the values from each of the following four steps All displays must be done in main. Use separate functions for each step below, passing the array to each function. 1.1) Provide the sum of the numbers in this array - function must return an int. 1.2) Provide the average of the positive numbers in this array - function must return a double. 1.3)Provide the lowest number in the array -function must return an int. 1.4) Provide the highest number in the array - function must return an int

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

Intelligent Information And Database Systems Second International Conference Acids Hue City Vietnam March 2010 Proceedings Part 1 Lnai 5990

Authors: Manh Thanh Le ,Jerzy Swiatek ,Ngoc Thanh Nguyen

2010th Edition

3642121446, 978-3642121449

More Books

Students also viewed these Databases questions

Question

Evaluate the integrals in Problems 3348. [ -1 e- dx

Answered: 1 week ago