Question: (a) Write function definitions to do the following tasks: i. Function calcLatest Balance () will receive the account balance, calculate the latest account balance
(a) Write function definitions to do the following tasks: i. Function calcLatest Balance () will receive the account balance, calculate the latest account balance after 5% dividend and return the latest account balance. (3 marks) ii. Function customerInfo() will receive customer's name, account number, account balance and latest account balance. This function will then display them. (2 marks) (b) Write the main program that will ask the customer to enter his/her name, account number and account balance. Then, call the functions defined in (a) to calculate the latest account balance after 5% dividend and display all of the customer's information. (4 marks)
Step by Step Solution
3.36 Rating (146 Votes )
There are 3 Steps involved in it
Function to calculate the latest account balance after a 5 dividend d... View full answer
Get step-by-step solutions from verified subject matter experts
