A very common problem is to model a simple retail store operation. In this case a video store is being used. There are several functions that need to be built. The main program is mostly a menu system. This will make it easy to calculate the numbers of days between two dates which is required in the fine calculation.
All data is read from cin.
In the first version of this program, no records are kept. Only receipts are printed. Note there can be many titles checked out for each receipt. For a check in, the primary task is calculation of the fine due. All data is also read from cin.