Question: 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

 Create a complete Java program based on the following requirements: i)

Reads the data from the file and filter the data into two

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!