While and For Loops

Add to buttons on the screen named Button1 and Button2

In Button create a For loop that will produce the values: 5 10 15 20 25 30

In Button create a While loop that will also produce these same values.

You do not need to display any values. Just have the loops produce these numbers.

Add a third button. In this button you will generate 10 numbers ranging from -7 to 3. You will determine and display:

Sum of all positive numbers

Sum of all positive numbers

How many positive numbers

How many negative numbers

Average of positive numbers

Average of negative numbers

(I leave it up to you how to decide and display these results)

Is this homework you want someone else to do for you ?