Attention : Your answer file name will be your school number-Q2.cpp (ex: 190201231-Q2.cpp) Randomly created 100 integers between 10-80 are being written in 100 element integer array. Write a program that finds the maximum and the minimum number in this array and how many times they are repeated. Randomly creating and writing 100 integers to array is to be performed in main block. Finding the maimum and the minimum numbers in the array and repetition number of those will be found in the user defined function. The results will be displayed on the screen in the main function, The sample output of the program is shown given below. 37 25 49 12 13 45 16 30 41 33 4s 18 17 29 18 23 37 11 24 43 19 40 10 30 23 22 19 19 48 29 22 33 48 34 45 22 43 42 47 30 36 31 10 18 21 33 38 30 46 16 12 26 24 48 15 27 10 38 34 19 43 19 2333 39 38 23 10 39 28 35 33 42 37 11 4117 20 48 42 37 43 42 17 13 47 18 49 48 28 25 44 31 36 31 17 47 12 48 The maximum integer in the array is - 49, this number 2 times repeated The minimum integer in the array is - 10, this number 4 times repeated -*** Process exited after e.03021 seconds with return value e Press any key to continue

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

hello teacher have a nice day. 
Can you help me i tried a lot but i cant

Attention : Your answer file name will be your school number-Q2.cpp (ex: 190201231-Q2.cpp)
Randomly created 100 integers between 10-80 are being written in 100 element integer array. Write a program that finds the maximum and the minimum number in this array and how many times they are
repeated.
Randomly creating and writing 100 integers to array is to be performed in main block. Finding the maximum and the minimum numbers in the array and repetition number of those will be found in the user
defined function.
The results wilIl be displayed on the screen in the main function.
The sample output of the program is shown given below.
37 25 49 12 13 45 16 30 41 33
45 18 17 11 24 43 29 18 23 37
19 40 10 3e 23 22 19 19 48 29
22 33 48 34 45 22 43 42 47 30
36 31 10 18 21 33 38 30 46 16
12 26 24 48 15 27 10 38 34 11
19 43 19 23 33 39 38 23 10 39
28 35 33 42 37 11 43 17 20 48
42 37 43 42 17 13 47 18 49 48
28 25 44 31 36 31 17 47 12 48
The maximum integer in the array is - 49, this number 2 times repeated
The minimum integer in the array is - 10, this number 4 times repeated
----- - - - - --------------------
Process exited after e.03021 seconds with return value e
Press any key to continue...
Transcribed Image Text:Attention : Your answer file name will be your school number-Q2.cpp (ex: 190201231-Q2.cpp) Randomly created 100 integers between 10-80 are being written in 100 element integer array. Write a program that finds the maximum and the minimum number in this array and how many times they are repeated. Randomly creating and writing 100 integers to array is to be performed in main block. Finding the maximum and the minimum numbers in the array and repetition number of those will be found in the user defined function. The results wilIl be displayed on the screen in the main function. The sample output of the program is shown given below. 37 25 49 12 13 45 16 30 41 33 45 18 17 11 24 43 29 18 23 37 19 40 10 3e 23 22 19 19 48 29 22 33 48 34 45 22 43 42 47 30 36 31 10 18 21 33 38 30 46 16 12 26 24 48 15 27 10 38 34 11 19 43 19 23 33 39 38 23 10 39 28 35 33 42 37 11 43 17 20 48 42 37 43 42 17 13 47 18 49 48 28 25 44 31 36 31 17 47 12 48 The maximum integer in the array is - 49, this number 2 times repeated The minimum integer in the array is - 10, this number 4 times repeated ----- - - - - -------------------- Process exited after e.03021 seconds with return value e Press any key to continue...
Expert Solution
steps

Step by step

Solved in 4 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