However when i run random2 1 100 20 for example it seg


The attached program uses a random number generator, orders numbers hi to low, displays hi number, low number and should display mean and median numbers from random list. I run "./random2 1 100 20" to generate 20 numbers between 1 and 100, (./random2 min max number).

My attached program compiles using gcc -Wall -ansi -o random2 Assign2bm.c.

However, when I run "./random2 1 100 20" for example it seg faults after displaying largest number and smallest number without displaying mean and median.

Attachment:- Assign2bm.txt

Solution Preview :

Prepared by a verified Expert
Game Theory: However when i run random2 1 100 20 for example it seg
Reference No:- TGS01254300

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)