Business & Technology | Math & CS | Dr. Aaron R. Rababaah | CSDP 250 | Final (Fall-2015) full paper solution
Implementation Language If code is given or required, it should be in C++ Question [01] Given the structure: struct BankAcnt{ string name; int number; float balance; }; Write a search function that scans a passed array of BankAcnt type to find an account with a passed number and resets the account balance to zero and returns “true”. If the account is not found, it just returns “false”. The operator “[]” is not allowed anywhere in the function and the size of the array is unknown but, the array always maintains a sentinel BankAcnt with a (number = -1). Question [02] Given the STL two containers: forward_list and stack, write two functions to: a) Reverse print the objects of a forward_list using recursion. b) Reverse print the objects of a forward_list using iteration and stack. Question [03] Write a function that prints a <queue> elements in reverse order using any helper STL container but the <stack>. Question [04] Given a singly-linked list template c...