Analyse the bill or receipt to determine all the data and processes
required to generate the bill or receipt. Finally, write a C++ program that prints the bill or
receipt. Some input for the program should be keyed in from the keyboard and some are read
from an input file. The program will print the bill or receipt into an output file.
To give you an idea about the program that you should develop, let us take a TNB bill as an
example. When the TNB technician comes to a house to deliver the bill, he or she only needs
to key in the account number and current reading of electricity meter into his/her handheld
device. The program (i.e., inside the handheld device) will fetch the customer information
from the database (which is also stored on the handheld device), along with the last reading
of electricity meter. In this case, the account number and current reading are read from the
console (or keyboard in your case), whereas the customer information and last reading are
read from the device storage (or input files in your case).
Feel free to use your own creativity to modify the bill or receipt you choose.