Question: Modify the Total program so that it writes the values in two columns, like this: 3 2 . 0 0 , 5 4 . 0

Modify the Total program so that it writes the values in two columns, like this:
32.00,54.00
67.50,29.00
35.00,80.00
115.00,44.50
100.00,65.00
Total: ,622.00
in2.txt
f
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util. Scanner;
??****
This program reads a file with numbers, and writes the numbers to another
file, lined up in two columns, and followed by the total.
*/
public class Total
{
public static void main(String [] args) throws FileNotFoundException
{
// Prompt for the input and output file names
Scanner console = new Scanner(System. in);
 Modify the Total program so that it writes the values in

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!