You are on page 1of 2

SRI LANKA TECHNOLOGICAL CAMPUS

TCS205/TCS104 – Computer Programming in C/C++

Assignment 02
Assignment Due: 14st July 2019

Q1. Write a C++ program to implement the bank passbook. Following details should include
your program.

• Name of Account.
• Account Number. (this should be 10-digit number)
• NIC – National Identity Card Number.
• Address line 1
• Address line 2

Date & Time Description Debit Credit Balance

• Implementing above table you can use array. Restrict your array size to 10 elements.
• C++ Structures and Functions should use for implementing the program. When you
use structures limit the number of structures to 5.
• Following are the functions of your program.
I. Deposit Money
II. Withdraw money.
III. Create new account.
IV. Close Account.
V. Create Bank Statement.
Following is a bank statement format.

ABC Bank
Account Name :
Account Number :
Month of the Statement :
Date & Time Description Debit Credit Balance
General Instructions

• Don’t copy from others. If any case all copied Assignments will get Zero marks.
• Don’t Directly copy from the Internet. If the case Those assignments will get Zero
Marks.
• You Should submit your own source code and Prepared report to moodle.
• Report should include source code and screen shots of the outputs of your program.
• Source code should upload as .c file.
• Program must be critically comment.
• You can State assumptions if any.
• No hard copies accept.

You might also like