Given the following text file named Residence. txt in Figure 1 that contains the data about the owner of the apartment.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Given the following text file named Residence. txt in Figure 1 that contains the data about the owner of the apartment.

Post by answerhappygod »

Given The Following Text File Named Residence Txt In Figure 1 That Contains The Data About The Owner Of The Apartment 1
Given The Following Text File Named Residence Txt In Figure 1 That Contains The Data About The Owner Of The Apartment 1 (55.22 KiB) Viewed 17 times
Given the following text file named Residence. txt in Figure 1 that contains the data about the owner of the apartment. The data is comprised of owner's IC number, name, unit, level and block of apartment. Figure 1: Residence.txt Write a complete Java program using the file I/O operation that can perform the following tasks: a) Read all records from text file named Residence. txt in Figure 1 b) Write information about female owner into file named female.txt as shown in Figure 2. The gender can be determined based on IC number where the last character of IC number represents the gender. If it is an even number, then the owner is a female. Figure 2: female.txt c) Close all file streams in used. d) Apply exception handling mechanism in the program. (10 marks)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply