QUESTION 2 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. I d) Close all file streams in used. e) Use exception-handling operations to deal with possible file input-output error.
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
Step by step
Solved in 3 steps with 3 images