Question: Using intelliJ Create a text file named input.txt containing sales data, which has the following attributes separated by comma (,): Product_ID, Salesman_Name, Gender, Price of
Using intelliJ
Create a text file named input.txt containing sales data, which has the following attributes separated by comma (,): Product_ID, Salesman_Name, Gender, Price of each Unit, Number of Units sold. The input file must have at least 5 records. Here is a sample input.txt file format as:
1. Raisa , Male, 2 , 20
2. Neil, Male, 50, 20
3. Harry, Male, 5, 54
The values are specified as per the order given earlier. Please write a program that reads the text file, input.txt and extracts sales data from it to a file named output.txt.
Create a method fileoperation() that calculates the total sales amount of a person and creates a new column that stores total sales amount of a person.
1. Raisa , Female, 2 , 20, 40
2. Neil, Male, 50, 20 , 1000
3. Harry, Male, 5, 54, 270
Make sure that you use the concept of loop and methods while writing the program
Create a flow chart showing the entire process. code should be ( .java code, input.txt and output.txt.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
