a C program in which an integer type of array named numberS with size of 10 s defined. Main program asks to user to process how many numbers. In your program there will be 3 functions named printa, mina, and maxa, to be called by main. The main program/function generates the numbers randomly within the range of 1 to 100 by using rand () function defined under stdlib.h (rand () %100+1). The function printa prints prints the elements of the array sent by the caller in tabular form to the screen. The functions mina and maxa determines the minimum and maximum of the array then returns to the caller respectively; the minimum and maximum values will be printed to screen by the main. Below is the example output of the program where 9 numbers is desired by the user. How many numbers to be generated (max 100)? 9 1 10 50 3 99 4 14 6. 9. 7 29 8 89 9. 7 Minimum Number: 2 Maximum Number: 99 Note: Use srand (time (NULL)); at the beginning of the program to fully randomize JOur program (time statement reguires time b library) 2.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please write with more comments ... thank you

 

Write a C program in which an integer type of array named numbers with size of 100
is defined. Main program asks to user to process how many numbers. In your program there
will be 3 functions named printa, mina, and maxa, to be called by main. The main
program/function generates the numbers randomly within the range of 1 to 100 by using
rand () function defined under stdlib.h (rand () %100+1). The function printa
prints prints the elements of the array sent by the caller in tabular form to the screen. The
functions mina and maxa determines the minimum and maximum of the array then
returns to the caller respectively; the minimum and maximum values will be printed to screen
by the main.
Below is the example output of the program where 9 numbers is desired by the user.
How many numbers to be generated (max 100)? 9
1
10
2
50
99
4
14
2
9
7
29
8
89
9.
7
Minimum Number: 2
Maximum Number: 99
Note: Use srand (time (NULL)); at the beginning of the program to fully randomize
your program (time statement requires time.h library).
Transcribed Image Text:Write a C program in which an integer type of array named numbers with size of 100 is defined. Main program asks to user to process how many numbers. In your program there will be 3 functions named printa, mina, and maxa, to be called by main. The main program/function generates the numbers randomly within the range of 1 to 100 by using rand () function defined under stdlib.h (rand () %100+1). The function printa prints prints the elements of the array sent by the caller in tabular form to the screen. The functions mina and maxa determines the minimum and maximum of the array then returns to the caller respectively; the minimum and maximum values will be printed to screen by the main. Below is the example output of the program where 9 numbers is desired by the user. How many numbers to be generated (max 100)? 9 1 10 2 50 99 4 14 2 9 7 29 8 89 9. 7 Minimum Number: 2 Maximum Number: 99 Note: Use srand (time (NULL)); at the beginning of the program to fully randomize your program (time statement requires time.h library).
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Accessibility feature of Form
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education