Assignment 03
Assignment 03
Instructions
Your assignment should represent your own effort. Each student shall write down and submit
his/her solutions separately.
For a programming task, your solution must contain (i) an explanation of your solution to the
problem (ii) the C++ code, in a form that we can run it, and (iii) instructions on how to run it.
For all programming tasks, it is not allowed to use any external libraries if not stated
otherwise. Please, include your name, student ID, and email address in your
submission.
Plagiarism will lead to -100% marks or ‘F’ Grade (any type of code sharing/Coping is
not allowed).
Submissions after Jan 8 (11:30 pm) will get zero. Any discussion/excuses regarding
deadlines will lead to -50% marks. This time, we will not extend the deadline in any case.
So, start this assignment from day 1.
In this assignment, you are required to store the bank users’ details.
You are required to create a menu page to execute the system’s functionality.
Restrictions: You are only allowed to use Arrays to store the account number.
Data Storage:
• Account Number
• Account Title
• Transaction History
• Balance
• Account Type
• Gender
Data:
You are required to generate 1000 nodes randomly. You have to write a function that will
generate random account details (such as account number, account title, and account balance).
The type of the account and gender can be extracted from the randomly generated account
number, as we know that the 4th digit represents the gender while the 5th digit represents the
account type. This function will call the Insert_Node function for every account. Insert_Node
function will detect the right position on the basis of the account number (that will be stored in
the array) and then insert the node in the BST.
The function described above (function to generate random data) should be called
immediately when the program started. After then the menu page should be open that allows
the user to perform all the functions mentioned at the start.
Please feel free to contact me (by email or visit my office during visiting hours). In case of
any confusion, you can discuss it with your fellows, but sharing code is strictly not allowed.
Your solution must be space-efficient along with time efficient.
Best of Luck