Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ programming Using the srand) and rand () C++ library functions, fill an array of 1000 floating-point numbers with random numbers that have been scaled
C++ programming
Using the srand) and rand () C++ library functions, fill an array of 1000 floating-point numbers with random numbers that have been scaled to the range 1 to 100. Then determine and display the number of random numbers having values between 1 and 50 and the number having values greater than 50. Then modify it to also count and display the number of values between 1 and 25, 26 and 50, 51 and 75 and 76 to 100. Provide: 1. Snapshot of program run showing results for values 1 to 50 and 51 to 100. 2. Snapshot of program run showing results for values 1 to 25, 26 to 50, 51 to 75 and 76 to 100. 3. Program source code with a comment at the top with your name, course code and date, ex.: //Miguel Long MAC102 July 14/2017 Put these three files into a compressed file as demonstrated in class before submittingStep 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