Problem:
(a) What is the main advantage to using a data file?
(b) What is meant by opening a data file? How is this accomplished? Illustrate your answer clearly with a suitable example.
(c) Write a simple C program that will allow a user to type in a sentence in lowercase and which will store the same as uppercase in a data file. Here the data file must be created in the same program.
(d) Write a simple C program that will now access the data file created in part(c) above and which will read the sentence typed.
(e) Differentiate between the ‘Object-Oriented' programming concept and ‘structural programming'.
(f) What is the difference between an object and a class in OO programming?
(g) Suppose you need to write an Object-Oriented program for maintaining the student records at the university.
What data should be stored inside the object representing the students?
To what messages should the object be able to respond?
What are the other objects that might be used in the OO program?