Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to sum up the price in the file that share the same consumer..For example, file one has all user's purchase history and one other

How to sum up the price in the file that share the same consumer..For example, file one has all user's purchase history and one other file has the specific name of the user (one name only)..the language use is java language..

File1.txt

metth

File2.txt

adam, Milk, 10

metth, Chips,20

metth, Milk, 10

matth, Eggs,5

adam,Eggs, 20

andrew, ethan, Milk, 50

Now, how was the coding to get the total amount of the metth spends at all time by reading the two file input without displaying the other user's total spend?

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Big Data With Hadoop MapReduce A Classroom Approach

Authors: Rathinaraja Jeyaraj ,Ganeshkumar Pugalendhi ,Anand Paul

1st Edition

1774634848, 978-1774634844

More Books

Students also viewed these Databases questions