Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

Assignment 02

Uploaded by

Faizan AQEEL
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 02

Uploaded by

Faizan AQEEL
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Capital University of Science and Technology

Department of Computer Science


CS1143 Object Oriented Programming
ASSIGNMENT 02
Semester: Fall 2024 Max Marks: 10
Instructor: Muhammad Zulqarnain. Date: 21-10-2024
Name: Reg. No.

BANK MANAGEMENT SYSTEM


You are asked to create a simplified bank management system using C++ classes. Your
system should be able to manage multiple bank accounts, allow deposits and
withdrawals, provide balance inquiries, and keep track of the total balance across all
accounts. You should implement this system without using inheritance.
Here are the requirements for your system:
I. Create a BankAccount class with the following
• private members for the BankAccount class:
1. accountNumber (an integer): A unique identifier for each account.
2. accountHolder (a string): The name of the account holder.
3. balance (a double): The current balance in the account.
4. Implement a logic to keep track of the total accounts created. i.e., number of
objects of BankAccount
• member functions for the BankAccount class:
1. A constructor that initializes the account number to a unique value in sequence
and sets the initial balance to 0 and account holders name to a default value of
“N/A” or receive while the creation of an object.
2. A deposit function that takes an amount and adds it to the account's balance.
3. A withdraw function that takes an amount and subtracts it from the
account'sbalance, if sufficient funds are available.
4. A BalanceCheck function that returns the current balance.
5. A getAccountNumber function that returns the account number.
6. Total number should keep the track of the counts(number) of bank account in
Bank number of Accounts.

Create a menu drive CLI interface to interact with the application.


NOTE: Submit only the <rollno_yourname.cpp> file & <rollno_yourname.docx>, 1 mark
will be deducted otherwise.
I will mark the assignment on the basis of viva/Demo.

You might also like