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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!