Hello to all experts. This is a program i need to make. I don't want someone to right the code (hahaha), but perhaps answer some general questions and to help me understand the task.
This is the task:
Video library your system will keep track of the videos in the librarys inventory, and the videos
currently borrowed by each customer. The system will check whether videos desired by a customer
are available, and whether the customer is allowed to borrow additional videos.
A video library keeps a file containing information about the videos it stocks, e.g., title, type (weekly,
3 day, overnight), genre, and quantity. Its interface runs continuously. Customers who wish to borrow
a video may either read the titles (browsing mode) or they may type in the title(s) they wish to borrow.
A customer may select a video at any time during browsing, and then either exit the browsing mode or
continue browsing.
When a video is borrowed, your program should decrement the number of copies of this title that are
still available, updating the file of video titles. When all the copies of a title are out on loan, the video
becomes unavailable. In that case, you should not show it to the customer when in browsing mode (if
the customer types in the name of an unavailable video, you should respond appropriately). When new
titles arrive at the library (or new copies of existing titles), you should update the video file.
The library also keeps a file that contains information about each customer. The record for each
customer contains his/her details, details of the videos currently on loan to him/her, and money owed
by the customer (if any). Your system should monitor the customers, checking for videos that are
overdue. If such videos are found, your system should print a warning message. You should also
device a policy for dealing with customers, e.g., how many videos can they borrow at any time? What
happens when they owe too much money or they have overdue videos?
My questions are:
1) How to make an interface run continuously
2) Ideas on updating the file of video titles
3) Dealing with overdue videos etc. (Date, time functions in C).
Thank you for your time.