Question: Write a program that uses a Scanner object to read in doubles representing positive daily temperatures over a period of time. You will need to

 Write a program that uses a Scanner object to read in

Write a program that uses a Scanner object to read in doubles representing positive daily temperatures over a period of time. You will need to keep track of the total temperatures that you read in and the lowest temperature that you read in. Using a loop (your choice on type) keep reading in temperatures (doubles) until you read in-1. Then print the total number of temperatures that you read in and the lowest temperature. Note: if-1 is entered at the start, then the program won't print anything. Examples Sample Input (on one line) Sample Output 10.5 21.5 16.8 12.6 9.2 15.6 -1 6 9.2 27.3 3.4 1.5 6.7 -1 51.5 Run Tests Grading 5 Problem6.Java Full Screen New 11 Test Case 1 O Not run NOT RUN Test Case 2 NOT RUN Not run Test Case 3 Not run NOT RUN Test Case 4 NOT RUN Not run Test Case 5 NOT RUN Not run

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!