Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have no idea how to start this program. Any help would be reallyappreciated. A

ID: 3609014 • Letter: I

Question

I have no idea how to start this program. Any help would be reallyappreciated.

A Java program should be created to read a text file(Transactions.txt) which will have one
number per line. This number is either a deposit or a withdrawal toa checking account. The
program should read the Transactions.txt , then write the deposits(positive numbers) to an
output file named Deposits.txt and the withdrawals (negativenumbers) to an output file named
Withdrawals.txt. Each number should be displayed on the screen asit is read from the file.

INPUT: The input file will be named Transactions.txt. One record(line) will contain a
number which is either a deposit (positive number) or a withdrawal(negative number). A
sample text file is below.
2000.00
-201.67
-310.54
-10.00
1200.80
-34.87
-22.67
-760.24









OUTPUT: Output should consist of a text file named Deposits.txtwhich will contain the
deposits (positive numbers) and a text file named Withdrawals.txtwhich will contain
withdrawals (negative numbers). In addition to the 2 output files,each number which be
displayed to the screen as it is read. The format of the filescould be as follows:

Deposits.txt Withdrawal.txt 2000.00
1200.80 -201.67
-310.5
-10.00
-34.87
-22.67
-760.24

2000.00
-201.67
-310.54
-10.00
1200.80
-34.87
-22.67
-760.24
2000.00
-201.67
-310.54
-10.00
1200.80
-34.87
-22.67
-760.24

Explanation / Answer

please rate - thanks import java.util.*; import java.io.*; public class banking { public static void main(String[] args)throwsFileNotFoundException { double number; Scanner input = new Scanner(new File("Transactions.txt")); PrintStream dep=new PrintStream(new File("deposits.txt")); PrintStream with=new PrintStream(new File("withdrawals.txt")); System.out.println("Deposits      Withdrawals"); while(input.hasNextDouble())     {     number = input.nextDouble();    if(number