Write a program that will generate a set of 75 random


Can you write the code that will generate random integers?

Program: Write a program that will generate a set of 75 random integers in the range -26 to + 42. The program should display the following:

a) The number of positive and negative numbers (treat 0 as positive).

b) The average value of the positive numbers

c) The average value of the negative numbers

d) The largest and smallest number.

e) The average of all the numbers.

You have to use a for loop structure for this question along with the Math.random() method to generate the random numbers.

Hint: Produce numbers in the range of 0-68 and subtract 26.

Add comments in code section that will be useful in the future.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program that will generate a set of 75 random
Reference No:- TGS0952669

Expected delivery within 24 Hours