Write a program that will read the book data from the file "/home/leap/cs122/book.dat" into an array of structures. The record structures in this array should have member fields for the call number (20 characters), the author (25 characters) and the title of the book (up to 250 characters). In this file, the call number is stored in the first 20 characters of the line, the author's name is stored in the next 25 characters on the line, and the remainder of the line holds the title.
Your program should read the lines of this file into an array and then print the first
entry of the array in the following format:
Call Number: 601.5644 R242 Author: Frank Willowbie Title: Techno-Weenies and Other Geeks
Your program should then prompt for a number. Input the number, make sure that it is not larger than the number of books you input so that you will not get an array subscripting error, and print out the corresponding record in the array for that number.
The program should terminate when a negative value is entered.