|
1 |
| -# fslab |
| 1 | +1. Write a program to read series of names, one per line, from standard input and write |
| 2 | +these names spelled in reverse order to the standard output using I/O redirection and |
| 3 | +pipes. Repeat the exercise using an input file specified by the user instead of the |
| 4 | +standard input and using an output file specified by the user instead of the standard |
| 5 | +output. <br> |
| 6 | +2. Write a program to read and write student objects with fixed-length records and the |
| 7 | +fields delimited by “|”. Implement pack ( ), unpack ( ), modify ( ) and search ( ) |
| 8 | +methods.<br> |
| 9 | +3. Write a program to read and write student objects with Variable - Length records |
| 10 | +using any suitable record structure. Implement pack ( ), unpack ( ), modify ( ) and |
| 11 | +search ( ) methods.<br> |
| 12 | +4. Write a program to write student objects with Variable - Length records using any |
| 13 | +suitable record structure and to read from this file a student record using RRN.<br> |
| 14 | +5. Write a program to implement simple index on primary key for a file of student |
| 15 | +objects. Implement add ( ), search ( ), delete ( ) using the index.<br> |
| 16 | +6. Write a program to implement index on secondary key, the name, for a file of |
| 17 | +student objects. Implement add ( ), search ( ), delete ( ) using the secondary index.<br> |
| 18 | +7. Write a program to read two lists of names and then match the names in the two lists |
| 19 | +using Consequential Match based on a single loop. Output the names common to |
| 20 | +both the lists.<br> |
| 21 | +8. Write a program to read k Lists of names and merge them using k-way merge |
| 22 | +algorithm with k = 8.<br> |
0 commit comments