The focus of assignment is on modular program design where you are require to develop your program using user-defined functions. It also requires you to write a program that interact with Input/Output files.
For the report, you are require to include the following :
(i) A structure chart of your program that hierarchically shows the various modules (aka functions) and how they link to one another. An example of structure chart is shown below
(ii) C++ Program listings (with appropriate comments) – you are to use user-defined functions for each of the major tasks (see below).
(iii) Print shots of input and output (with all the testing and validity checks). Sampe I/O files content (if relevant). Print screens of actual runs with all the possible test data.
Problem and Program Specifications
IVM Main Menu to contain the following items :
2. Purchase Items
3. Display Transactions
4. Pin Number
0. Login Specs :
Prior to performing any transactions on IVM, user (only single user) is required to enter a valid Pin Number. There are three scenarios as follow :
Programming Requirements (Prog. Req.) : You need to write function(s) for each of this scenario and to read/write to an external file that store user PIN.
1. eWallet Specs :
Similar to the specs in Assignment but now we have the options to check the current balance in the eWallet and to change the limit of eWallet.
Prog. Req. : Write C++ function for each case.
Similar to the requirements in Assignment 1, only now IVM allows user to purchase more than one items. For products which cost more than RM 25.95, a 6% SST (Sales and Service Tax) is imposed on them. The number of items to be purchased is determined by the total price of the item(s) purchased or by the current balance in eWallet or by the user selection (see below).
Prog. Req. : Write C++ function for “Purchase Item”, repetition & selection control structures, need to record the transaction details (items purchased and amount dues) to an external file.
As in the Assignment 1, this option allows IVM to display the current transaction’s details for the item(s) purchased and the amounts due. This may requires reading (retreiving from an external’s file) the transaction’s record committed in the “Purchase Items”.
Prog. Req. : Write C++ function to perform this task, may require reading/retrieving data from an external file.
There are two options that come under this menu :
Prog. Req. : Write C++ function for each of these options. May require writing and reading to/from external file to store/read the PIN.
An option that once selected allows the users to exit IVM system. Upon exiting IVM system, IVM will display the following information :
Prog. Req. : You may write C++ function(s) to perform the above tasks.