Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Consider this article:...

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago