Question: #1. JAVA: For the following 10x15 matrix, we are trying to generate a 2-D, 10x15 array of double type values and fill in the individual

#1. JAVA: For the following 10x15 matrix, we are trying to generate a 2-D, 10x15 array of double type values and fill in the individual cells with randomly generated temperatures ranging between 0.0 and 120.0. After then, we want to transform the temperature matrix into a new matrix of symbolic characters. Please refer to the following temperature-to-symbol mapping rules

* Temperature-to-symbol charachter mapping rules

100~ : #

70 ~ 100 : &

40 ~ 70 : !

10 ~ 40 : -

~ 10 : .

[1.1] Please declare a 2-D,10x15 array of double type values, temp

_____________________________________________________;

[1.2] Please declare a 2-D,10x15 array of char type values, plot

_____________________________________________________;

[1.3] Fill in the individual cells with randomly generated temperatures ranging between 0.0 and 120.0

Random rand = new Random();

[1.4] Please fill in the plot matrix by transforming the elements of temp array into its correspondent symbolic characters.

[1.5] Please print the plot matrix

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!