Question
Write a C++ program using menu-driven style that allows the user to perform the following tasks: Doing banking works (1). Managing a list of employees
Write a C++ program using menu-driven style that allows the user to perform the following tasks: Doing banking works (1). Managing a list of employees (2). Playing Magic Square (3). Allow your program runs continuously until user selects the option to end from the menu. (1) Banking works Design and implement a hierarchy inheritance system of banking, which includes Savings and Checking accounts of a particular customer. Inheritance and virtual functions must be used and applied; otherwise, there is no credit. The following features must be incorporated: 1. The account must have an ID and customers full name and his/her social security number. 2. General types of banking transactions for both accounts, checking and savings: withdraw, deposit, calculate interest, figure out the balance, and transfer funds (between the two accounts). 3. Savings restrictions: ~~ Become inactive if the balance falls less than $25, and under such situation, no more withdrawals may be allowed. ~~ A $1 charge for each transfer fund (to Checking account), with the first transfer is free. ~~ The monthly interest rate is 3.75%. 4. Checking restrictions: ~~ A monthly service charge is $5 ~~ A 10 cents charge for each written check, with the first check is free. ~~ A $15 charge for each bounced check (not enough funds). ~~ The monthly interest rate is 2.5%. (2) List of Employees: A menu-driven style is needed to implement a linked list of employees. Each employee must have a full name, SSN, wage, identification number, department, and date of hire included as the employees attributes. The identification number is an integer and unique for a specific employee. The menu must have all of the following operations: Add a new employee to anywhere in the list, for a just hired employee. Search for an existing employee in the list, for a real employee. Display information for all employees in the list, in tabular format with appropriate headers that include Id, full name, SSN, wage, department and hired date. Edit any information of an existing employee in the list, for up to date data. Delete an existing employee in the list, for a moved out employee. All data can be saved to an external data file, for reusing the just-processed data later. All data can be read from an external data file, for retrieving previously-saved data. Quit the menu, for doing something else. Note: You are not allowed to use the list container defined in The Standard Template Library (STL). That meant: #include is not allowed. Others classes in STL are free to use. The maximum number of employees in the list is limited to 100. Validate your input data for not crashing at run time and for displaying properly on screen. Empty input is always not acceptable and should have an error message displayed. (3) Magic Square A magic square of order n is an arrangement of n2 numbers, usually distinct integers, in a square, such that the n numbers in all rows, all columns, and both diagonals sum to the same constant. The Magic Square section should display any magic square with the size entered at the run time. The size could be varying from 3 to 15. Note: with the same size n entered at repeated runs, there should be different squares displayed; That meant if the same square was always displayed for the same input size, it is wrong.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started