Question: Write a program using PERL: 1.-Generates 100 randomly generated numbers between -25 and +25, 0 can be treated as a positive number 2.-Stores these numbers
Write a program using PERL:
1.-Generates 100 randomly generated numbers between -25 and +25, 0 can be treated as a positive number
2.-Stores these numbers in an array
3.-Counts the number of positive and negative numbers generated
4.-Finds the minimum, maximum, and average of the numbers generated
5.-Opens a file called result.txt and writes the results (counts, min, max, and average) into this file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
