Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use C only not C++ and write a little describtion to each step Write a program to investigate a set of 15 random numbers. Declare
Use C only not C++
and write a little describtion to each step
Write a program to investigate a set of 15 random numbers. Declare variables. Seed the random number generator with the time of day. Initialize the variables for maximum, minimum, and count. On each pass through a for loop: Generate a random integer between -50 and 50 and print it. See notes on random numbers under files in Canvas. Check to see if it is larger than the maximum. If so assign as new maximum. Check to see if it is smaller than the minimum. If so, assign as new minimum. Check to see if it is negative. If so add to the count of negatives Upon exiting, print maximum, minimum, and count of negative numbersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started