Write a C program that will accept 10 input values and will store the values in array. The program will also identify and print the minimum, maximum and average of input values.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

2. Task 1: Using Single-Dimensional Array

Write a C program that will accept 10 input values and will store the values in array. The program will also identify and print the minimum, maximum and average of input values.

NOTE:
Your source code must display any of the given sample output below.
It means your source code should be flexible enough to meet any of the given sample output.
Your source code output must be identical to any of the given sample output.
It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output.
OUTPUT 1:
Input Value 1: 50
Input Value 2: 20
Input Value 3: 35
Input Value 4: 100
Input Value 5: 75
Input Value 6: 89
Input Value 7: 5
Input Value 8: 11
Input Value 9: 85
Input Value 10: 60
MIN Value: 5
MAX Value: 100
AVG Value: 53
OUTPUT 2:
Input Value 1: 10
Input Value 2: 9
Input Value 3: 8
Input Value 4: 7
Input Value 5: 6
Input Value 6: 5
Input Value 7: 4
Input Value 8: 3
Input Value 9: 2
Input Value 10: 1
MIN Value: 1
MAX Value: 10
AVG Value: 5
OUTPUT 3:
Input Value 1: 50
Input Value 2: 20
Input Value 3: 35
Input Value 4: 94
Input Value 5: 75
Input Value 6: 89
Input Value 7: 1
Input Value 8: 11
Input Value 9: 85
Input Value 10: 60
MIN Value: 1
MAX Value: 94
AVG Value: 52
Codio
Project
File
Edit
Find
Tools
Education
Help
A Compile & Run
> Project Index (static)
O Debug Current File
View
GMENDOZA83
task1.c
2. Task 1: Usi... X
#include <stdio.h>
Collapse
3
void main()
{
//Your codes here...
4 .
2. Task 1: Using Single-Dimensional Array
5
6
7
Write a C program that will accept 10 input
8
9
values and will store the values in array. The
10
11
program will also identify and print the minimum,
12
13
maximum and average of input values.
14
NOTE:
15
16
Your source code must display any of the given sample output below.
17
It means your source code should be flexible enough to meet any of the given sample
18
output.
19
Your source code output must be identical to any of the given sample output.
20
}
It means you have to strictly follow what are the displayed text, labels, casing of
characters in the sample output.
OUTPUT 1:
Input Value 1: 50
Input Value 2: 20
Input Value 3: 35
Input Value 4: 100
AR
0% (1:0)
Input Value 5: 75
Transcribed Image Text:Codio Project File Edit Find Tools Education Help A Compile & Run > Project Index (static) O Debug Current File View GMENDOZA83 task1.c 2. Task 1: Usi... X #include <stdio.h> Collapse 3 void main() { //Your codes here... 4 . 2. Task 1: Using Single-Dimensional Array 5 6 7 Write a C program that will accept 10 input 8 9 values and will store the values in array. The 10 11 program will also identify and print the minimum, 12 13 maximum and average of input values. 14 NOTE: 15 16 Your source code must display any of the given sample output below. 17 It means your source code should be flexible enough to meet any of the given sample 18 output. 19 Your source code output must be identical to any of the given sample output. 20 } It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output. OUTPUT 1: Input Value 1: 50 Input Value 2: 20 Input Value 3: 35 Input Value 4: 100 AR 0% (1:0) Input Value 5: 75
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY