Question: This is an assignment for JAVA and it should use scanner. I'm struggling to understand how to use it though which makes it pretty difficult

This is an assignment for JAVA and it should use scanner. I'm struggling to understand how to use it though which makes it pretty difficult to write any of the rest of the code.

This is an assignment for JAVA and it should use scanner. I'm

Part 2 - Finding Smallest Double Write a program that finds the smallest of several doubles entered by a user and prints the result. Assume that the first input specifies the number of values remaining to be entered. Also assume that a user can enter both positive and negative double values as input. An example input sequence might be: 4 10 -2.9 14.2 -2.5 1) Create a new class named SmallestDouble. 2) Modify your code using the following sample: import java.util.Scanner; public class Smallest Double public static void main(String [] args) { findSmallest Double(); > * This method takes input from the user and identifies the smallest double number public static void findSmallestDouble() { //write your code here L 3) Create your main method and invoke findSmallestDouble method from main. 4) Implement the "findSmallestDouble" method. 5) Test the findSmallestDouble" method and verify the output. See the example output: How many doubles will be entered? 5 Enter a double: 9 Enter a double: -999 Enter a double: 0.5 Enter a double: -0.5 Enter a double: 8 The smallest double is : -999.0

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!