Question 1: (Probejava) Prior to departing space dock, the USS Equinox sent long-range probes to several quadrants of the galaxy. In particular, the probes were sent to search for M-class, habitable planets. Each probe was monitoring a different mumber of planets, for a different period of time and several have retumed their data relating to rainfall measurements, but an error in the transmission protocol means that you have to enter the data mamially. Your first task is to write a Java program that produces statistics for each probe's data. Read the requirements carefully before beginning. Pronpt the user to enter a mumber for the rows and a mumber for the columns. The columns represent each of the planets the probe was monitoring, and the rows represent the mumber of rainfall (in mm) readings for each planet (don't accept negative numbers or Os for rows or columins as they are invalid). As an example, the following data was retrieved from probe Delta-One-Nine that was monitoring 5 planets for three rotation cycles: 10.1 25.2 92.9 0.4 60.4 0.0 0.1 0.0 145.0 247.1 100.7 3.9 25.1 6.0 25.2 This data set would require 3 rows and 5 colunins. After you have retrieved the dimensions and crated the necessary 2D array, prompt the user to enter the data. The specifics of how you do this is up to you, but make it at least a bit user friendly. Then, the program should compute the following: • Spread (or range) of the rainfall measurements across all data points (the whole aray) o For the above example, this value would be the highest (247.1) minus the lowest (0.0), or 247.1. • Average rainfall (mm) per planet (column) O These values would be approximately 6.66666 and 25.16666666 for the first two columns in the example above. Total rainfall across all planets per recording cycle (row) o For the example above, these values would be 273.2 and 276.6 for the first nwo rows. Maxinum rainfall (nun) value and the location in the array where it occured o For the example above thus would be 247.1 located at 1,4. You can use the data chown above to test you program, but it should be able to handle an array of arbitrary size and values. You can do all of this worl: in a single main() method but for fill muks, each of the "bullet-point" tasks above should be done in a separate method. Display your program to D2L

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
20... x
瓦,
早2 at
2 / 13
74.5%
Question 1: (Probejava) Prior to departing space dock, the USS Equinox sent long-range probes to
several quadrants of the galaxy. In particular, the probes were sent to search for M-class, habitable
planets. Each probe was monitoring a different mumber of planets, for a different period of time and
several have retumed their data relating to rainfall measurements, but an error in the transmission protocol
means that you have to enter the data mamually. Your first task is to write a Java program that produces
statistics for each probe's data. Read the requirements carefully before beginning.
Prompt the user to enter a mumber for the rows and a mumber for the columns. The columns represent
each of the planets the probe was monitoring, and the rows represent the mumber of rainfall (in mm)
readings for each planet (don't accept negative numbers or Os for rows or columns as they are invalid).
As an example, the following data was retrieved from probe Delta-One-Nine that was monitoring 5
planets for three rotation cycles:
10.1 25.2
3.9 25.1 0.4
6.0
92.9 0.0
0.1
145.0
247.1
100.7
25.2
60.4
0.0
This data set would require 3 rows and 5 colunns. After you have retrieved the dimensions and crated
the necessary 2D array, prompt the user to enter the data. The specifics of how you do this is up to you,
but make it at least a bit user friendly. Then, the program should compute the following:
Spread (or range) of the rainfall measurements across all data points (the whole array)
o For the above example, this value would be the highest (247.1) minus the lowest
(0.0), or 247.1,
Average rainfall (num) per planet (column)
O These values would be approximately 6.66666 and 25.16666666 for the first two
colunns in the example above.
Total rainfall across all planets per recording cycle (row)
o For the example above, these values would be 273.2 and 276.6 for the first wo
rows.
Maxinum rainfall (mm) value and the location in the array where it occured
o For the example above this would be 247.1 located at 1,4.
You can use the data shown above to test your program but it should be able to handle an array of
arbitrary size and values. You can do all of this work in a single main() method, but for fiill mauks, each
of the "bullet-point" tasks above should be done in a separate method. Display yvour program to D2L
人
Transcribed Image Text:20... x 瓦, 早2 at 2 / 13 74.5% Question 1: (Probejava) Prior to departing space dock, the USS Equinox sent long-range probes to several quadrants of the galaxy. In particular, the probes were sent to search for M-class, habitable planets. Each probe was monitoring a different mumber of planets, for a different period of time and several have retumed their data relating to rainfall measurements, but an error in the transmission protocol means that you have to enter the data mamually. Your first task is to write a Java program that produces statistics for each probe's data. Read the requirements carefully before beginning. Prompt the user to enter a mumber for the rows and a mumber for the columns. The columns represent each of the planets the probe was monitoring, and the rows represent the mumber of rainfall (in mm) readings for each planet (don't accept negative numbers or Os for rows or columns as they are invalid). As an example, the following data was retrieved from probe Delta-One-Nine that was monitoring 5 planets for three rotation cycles: 10.1 25.2 3.9 25.1 0.4 6.0 92.9 0.0 0.1 145.0 247.1 100.7 25.2 60.4 0.0 This data set would require 3 rows and 5 colunns. After you have retrieved the dimensions and crated the necessary 2D array, prompt the user to enter the data. The specifics of how you do this is up to you, but make it at least a bit user friendly. Then, the program should compute the following: Spread (or range) of the rainfall measurements across all data points (the whole array) o For the above example, this value would be the highest (247.1) minus the lowest (0.0), or 247.1, Average rainfall (num) per planet (column) O These values would be approximately 6.66666 and 25.16666666 for the first two colunns in the example above. Total rainfall across all planets per recording cycle (row) o For the example above, these values would be 273.2 and 276.6 for the first wo rows. Maxinum rainfall (mm) value and the location in the array where it occured o For the example above this would be 247.1 located at 1,4. You can use the data shown above to test your program but it should be able to handle an array of arbitrary size and values. You can do all of this work in a single main() method, but for fiill mauks, each of the "bullet-point" tasks above should be done in a separate method. Display yvour program to D2L 人
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY