Question
Write a program in JAVA (project) that asks the user to specify an input file and output file. Have the program read each line in
Write a program in JAVA (project) that asks the user to specify an input file and output file. Have the program read each line in the input file to find the smallest number. Then write that number to the output file with two decimal places along with "<== smallest number". To be clear - if the input file contained the numbers 3, 74, 50, 35 and 22 then the output file would only contain: 3.00 <== smallest number Submit only the Java file - NOT the zipped Netbeans project. Your Java class should be named FindSmallest. Therefore your Java file will be named FindSmallest.java. Has to make sure the user is specified the input and output file location instead of hardcoding it. Must be done in Java please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started