My assignment for C project
So I was kinda in a rush for my C programming and I regret for not paying attention in class. Now I'm here seeking for help ;-;
My part is to program a booking module which includes Booking ID, today’s date, booking date, booking time, user ID, facility ID,
etc.
Example: B1116, 5/11/2019, 10/11/2019, 10am-11am, 19WMD09123, F0001, ...
My module must incorporate the following 3 programming concepts which are
1. Structures
-Include as many useful fields as you feel is necessary
-Incorporate structure, nested structure, and array of structure into
your program.
2. Text file or binary file
-Must use a mixture of text files and binary files.
3.Functions
-Enhance efficiency, readability and re-usability by using functions
whenever appropriate.
-Include parameters where appropriate and minimize/eliminate the
use of global variables.
Lastly the requirements for my module must include these 4 compulsory functions listed in a menu: Add, Search, Modify and Display. The Add function should save new record(s) into the
corresponding text/binary file, the Search function should retrieve appropriate data from the text/binary file and display it in a suitable format. The Modify function allows a user to make changes to the data. Some basic data validation should be done before saving new or modified record(s) into a file. For the Display function, it should display all the records in an appropriate tabular format.
[Suggestion: At the start of every module run, read all data from the text/binary file
into an array of structures. Perform the necessary processing on the array. At the end
of the module run, write the updated array of structures back to the text/binary file.]