CP-Lab_Assignment_2.pdf - National University of Computer &...

This preview shows page 1 - 2 out of 3 pages.

National University of Computer & Emerging Sciences (NUCES)CFD Campus Department ofComputer ScienceComputer Programming Spring 2018CS-17 BatchAssignment2You have to write a program to assist the bank operations. Your program shouldhelp managers to add different customers and their bank accounts in to the systemand also perform some transactional operations. Your program should havefollowing classes and their respective data members.Account:Member Variables:accountNo, balance, accountDate, owner(Customer type)Member Functions:depositMoney: This function should receive the amount of money inargument and add it to the balance.getBalance: This function should return the amount present in bank account.withdrawMoney:it will take an argument as amount that is to be withdrawand update and return the remaining balance.Setters/gettersfor all membersSavingAccount(inherited by Account)Member variables:interestRateMember Function:changeInterestRate

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Sarim baig
Tags
Computer Science, Computer program

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture