Question: QUESTION 2 (10 marks) Reading the Quran will help you find direction in your life and it is a source of guidance. The last chapter

 QUESTION 2 (10 marks) Reading the Quran will help you find

QUESTION 2 (10 marks) Reading the Quran will help you find direction in your life and it is a source of guidance. The last chapter of Quran (Juz 30) also known as juz amma and for this purpose there is a text file named juz 30.txt containing all information regarding juz 30. Each record consists of surah number, name of surah, verses, and place of nuzul as shown in Figure 1: ju:30bt - Notepad File Edie Format View Help 78;An-Naba;48;Mecca 79; An-Nazi'at;46;Mecca 88; Abasa; 42;Mecca 81;At-Takwir; 29; Mecca 82; Al-Infitar; 19;Mecca 83;Al-Mutaffifin; 36;Mecca 84;Al-Inshiqaq;25;Mecca 85;A1-Buruj;22;Mecca 86;At-Tariq;17;Mecca 87;A1-A'la;19;Mecca 88;A1-Ghashiyah;26;Mecca 89;Al-Fajr; 38;Mecca Figure 1: A sample of juz30.txt Write a complete Java program using file 1/0 to perform the following tasks: a) Read all records from the file named juz30.txt b) Write the following information to a text file named above20Juz 30.txt: To display all records that containing more than 20 verses. Count and display the number of surah that containing more than 20 verses. Use exception-handling operations to deal with possible file input-output error

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!