COSC 471/571 Assignment 0927 Distributed: 9/27/2018 Due: 10/4/2018 I. Short Description: Records in random access file II. Create and populate a random access file of records. Each record contains one int, one double, one char. If you are using Java, then each record contains 4 + 8 + 2 bytes. Populate the file with the following values (in this order): (1, 1.0, 'a') (2, 2.0, 'b') (3, 3.0, 'c') (4, 4.0, 'd') (5, 5.0, 'e') (6, 6.0, 'f') The creation and population of the data file may be done in a stand-alone program. III. Using random access file operations do the following: 1. Output the double field of the records (one value per output line). 2. Locate the record where the int value is 4, then output that entire record (entire record on one line, fields separated by white space). 3. Prompt the user (this can be hard-coded or run-time user interaction) for an int value between 2 and 5 inclusive. Locate all records with int value less than or equal to the user-supplied input and output the char field value (each record's char field value on a separate line of output). Note: there will be between 2 and 5 records printed depending on the user input. These database operations in III must be done in a single program. That program may include the creation and population from part II if you wish. IV. The use of random access file operations to access the data is a hard constraint -- do not read the data using stream input. V. Turn in (1) Hard copy of all code. - Header must include your last name, assignment identifier (0927), URL of source code. If the code is in more than one file, then instructions on how to run the code must also be supplied. - Your code must be pretty-printed! Good alignment; good use of white space; No uncontrolled line-breaks. - No magic numbers! Clean and elegant code only! (2) Directory listing showing size of data file. (3) Screen shot of execution of part II. Screen shot of execution of part III, showing input and output. (4) Language of implementation: - not perl - must be able to run locally