Given the following text file named Stud FKM.txt in Figure 1 that contains the recruitment data of athlete from FKM, UiTM. The data is comprised of students' name, gender, weight and height. StudFKM - Notepad File Edit Format View Help Mohd Azam Awang, Male, 55, 1.68 Abdullah Zakaria, Male, 65, 1.77 Marina Abdul Aziz, Female, 52, 1.68 Abdul Sani Hassan, Male, 77,1.84 Nurul Izawani Haron, Female, 45,1.55 Muhammad Nabil Salleh, Male, 60, 1.76 Figure 1: Sample of StudFKM.txt Write a complete Java program using File I/O operation that can perform the following tasks: a) Declare the related file involved. b) Read all records from text file named StudFKM.txt in Figure 1 c) Write all records about female students whose weight is above 60 and height is below 1.6 into text file named Female.txt. 1 d) Close all file streams in used. e) Use exception-handling operations to deal with possible file input-output error.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter3: Table Creation And Management
Section: Chapter Questions
Problem 2HOA: Create a new table containing these four columns: Emp#, Lastname, Firstname, and Job_class. The...
icon
Related questions
icon
Concept explainers
Question

Do it in 15 min

QUESTION 2
Given the following text file named studFKM.txt in Figure 1 that contains the recruitment
data of athlete from FKM, UiTM. The data is comprised of students' name, gender, weight
and height.
StudFKM Notepad
File Edit Format View Help
Mohd Azam Awang, Male, 55, 1.68
Abdullah Zakaria, Male, 65,1.77
Marina Abdul Aziz, Female, 52, 1.68
Abdul Sani Hassan, Male, 77,1.84
Nurul Izawani Haron, Female, 45,1.55
Muhammad Nabil Salleh, Male, 60, 1.76
Figure 1: Sample of StudFKM. txt
Write a complete Java program using File I/O operation that can perform the following tasks:
a) Declare the related file involved.
b) Read all records from text file named StudFKM.txt in Figure 1
c) Write all records about female students whose weight is above 60 and height is below 1.6
into text file named Female.txt.
|
d) Close all file streams in used.
e) Use exception-handling operations to deal with possible file input-output error.
Transcribed Image Text:QUESTION 2 Given the following text file named studFKM.txt in Figure 1 that contains the recruitment data of athlete from FKM, UiTM. The data is comprised of students' name, gender, weight and height. StudFKM Notepad File Edit Format View Help Mohd Azam Awang, Male, 55, 1.68 Abdullah Zakaria, Male, 65,1.77 Marina Abdul Aziz, Female, 52, 1.68 Abdul Sani Hassan, Male, 77,1.84 Nurul Izawani Haron, Female, 45,1.55 Muhammad Nabil Salleh, Male, 60, 1.76 Figure 1: Sample of StudFKM. txt Write a complete Java program using File I/O operation that can perform the following tasks: a) Declare the related file involved. b) Read all records from text file named StudFKM.txt in Figure 1 c) Write all records about female students whose weight is above 60 and height is below 1.6 into text file named Female.txt. | d) Close all file streams in used. e) Use exception-handling operations to deal with possible file input-output error.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Query Syntax
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning