Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a complete Java program based on the following requirements: i) Reads the data from the file and filter the data into two new output

image text in transcribed

image text in transcribed

Create a complete Java program based on the following requirements: i) Reads the data from the file and filter the data into two new output text files called forestedArea.txt and nonForested. txt. ii) Each file will consist of the following information: Area, State, Year, Category and Hectares. Also, calculate the total hectares. Design the output file properly with report header. ii) Create another file called summary. txt that consist of total hectares for both forested and non-forested for Peninsular Malaysia and Sabah&Sarawak. Also, display the data in percentage % value. The following is the sample data, you may change the format on your own. Forested Non-Forested === Area Hectares % Hectares % Peninsular Sabah&Sarawak 5,776,068 12,557,434 43.7 62.92 7,442,997 7,401,877 56.3 37.08 iv) Implement appropriate exception-handling technique to deal with the possible exception. (17 marks)

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

Students also viewed these Databases questions

Question

want full detailed code

Answered: 1 week ago