Workshop 9


HOMEWORK SOLUTIONS!

Workshop 9

Using jgrasp
Create an array that will store 7 temperatures.
Populate the array with 7 random temperatures from 1 to 100 degrees. (hint use a for loop and a Random number Generator)
After the temperatures are in the array, calculate the average of the temperatures in the array.
Print out the average.
Print out each temperature in a statement comparing it to the average such as:
The average temperature is 48.94

Temperature 1 is 5.0 and is below average.

Temperature 2 is 67.8 and is above average.

Workshop 9 20

Need Solution Email me at: Topsolutions8@gmail.com

or

https://gum.co/qqVQ

 

View original post

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s