Vrite a complete Java program using File /O operation that can perform the following tasks:

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 1GZ
Question
The expected output as given in Figure 2:
Postagelummeny bet - Netepad
File Edt Format View Help
Monthly Sunnary
1) The total weight of all iten is 22.7kg
2) The total price of all iten is 128.52
3) The most heaviest iten details:
Postcode: 20000
Weight: 12.8kg
Content type: cloth
Postage fee: RN67.99
c) Close all file streams in used.
d) Apply exception handling mechanism in the program
Transcribed Image Text:The expected output as given in Figure 2: Postagelummeny bet - Netepad File Edt Format View Help Monthly Sunnary 1) The total weight of all iten is 22.7kg 2) The total price of all iten is 128.52 3) The most heaviest iten details: Postcode: 20000 Weight: 12.8kg Content type: cloth Postage fee: RN67.99 c) Close all file streams in used. d) Apply exception handling mechanism in the program
Given the following text file named Posini.txt in Figure 1 that contains posting data of a courier company Posini. The data is comprised of postcode, weight (kg), content type and postage fee.
Posini.bt - Notepad
File Edit Format View Help
20000; 12.8;cloth;67.99
21100; 3.1;glass; 23.45
40008;2.5; document;17.09
45678;4.3; device;19.99
Winde Ln 1, ( 100%
Write a complete Java program using File /O operation that can perform the following tasks:
a) Read all records from text file named Posini.txt in Figure 1
b) Analyze and write the following information to a text file named PostageSummary.txt
• Total weight of all item
Total price of all item
• The most heaviest item details
Transcribed Image Text:Given the following text file named Posini.txt in Figure 1 that contains posting data of a courier company Posini. The data is comprised of postcode, weight (kg), content type and postage fee. Posini.bt - Notepad File Edit Format View Help 20000; 12.8;cloth;67.99 21100; 3.1;glass; 23.45 40008;2.5; document;17.09 45678;4.3; device;19.99 Winde Ln 1, ( 100% Write a complete Java program using File /O operation that can perform the following tasks: a) Read all records from text file named Posini.txt in Figure 1 b) Analyze and write the following information to a text file named PostageSummary.txt • Total weight of all item Total price of all item • The most heaviest item details
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage