Basic till system for a book shop in C