Comprehensive Bank Transaction Management System Using C Language

Verified

Added on  2022/10/12

|20
|1253
|493
Project
AI Summary
This report details a C programming project implementing a bank transaction system. The program, developed using Dev C++ IDE, features functions for creating new accounts, viewing account lists, editing account details, managing transactions (deposits and withdrawals), deleting accounts, and viewing individual account information. The system utilizes file handling to store and retrieve account data, allowing for persistent storage of customer information and transaction records. The program's structure includes data validation, menu-driven interaction, and comprehensive functionality for managing various account operations. The report includes the program's functions, outputs generated, and a conclusion summarizing the project's successful implementation and functionalities. The system supports various account types and demonstrates a robust approach to managing financial transactions within a banking context.
Document Page
Running Head: TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Name of the Student:
Name of the University:
Author Note:
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
2TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Table of Contents
Introduction......................................................................................................................................3
Discussion........................................................................................................................................3
The functions used in the program..............................................................................................3
Outputs generated..........................................................................................................................12
Conclusion.....................................................................................................................................18
Bibliography..................................................................................................................................20
Document Page
3TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Introduction
C programming language is considered as one of the base programming language for
other computer languages, thus it is also known as the Mother language. In C programming
language the codes are divided in to smaller parts which are known as functions and the
instruction in the functions are followed by the computer. This is the reason why C programming
language is also known as Procedure Oriented Programming language or POP. A top down
approach is followed by C programming language and is also known as structured programming
language. In this report, a simple implementation of a bank transaction system is briefly
described. The writing and execution of the code is done using the Dev C++ IDE, version 5.11.
Discussion
The functions used in the program
void new_acc();
void view_list();
void edit(void);
void transact(void);
void erase(void);
void see(void);
void new_acc():
Document Page
4TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
The new_acc function is used to create new account. All the inputs are provided by the
user. The file pointer *ptr is used to traverse the file. The inputs are provided by the user and
there is also a validation check for the account number. The structure that is used in this program
is:
struct {
char name[60];
int acc_no,age;
char address[60];
char citizenship[15];
double phone;
char acc_type[10];
float amt;
struct date dob;
struct date deposit;
struct date withdraw;
}add,upd,check,rem,transaction;
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
5TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
One more structure is used in the program which is named as date:
struct date{
int month,day,year;
};
The name variable is used to store the name and is of char type. The acc_no and the age
variables are used to store the account number and age of the customer and is of integer type.
The address and the citizenship variables are used to store the address and the citizenship number
Document Page
6TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
of the customer and is of character type. The phone variable is used to store the phone number
which is a double type. The character type variable acc_type is used to store the type of account
the customer has. The struct date dob, deposit and withdraw are used to store the present date,
the birthday of the customer and the withdraw and the deposit details of the customer.
The view_list function is used to display all the records that are present in the data file.
The name of the data file for this program is “BankingCustomer.dat”.
Erase() function is used to delete or remove an account from the database of the RBC
banking system. This is achieved by providing the account number or the name of the customer
that the user wants to delete.
Edit() is the function that is used to modify the account details for a particular customer
or account holder. This function takes the account number to be modified by the user and
modifies the account details accordingly.
In the see() function shows the details of an account using the account holder’s name.
The addNewaccount function:
Document Page
7TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
This function is used to add new entry to the database. The data is store in a .data file which is
named as “BankingCustomer.dat”. There is a validation check for the account number, if the
account number exists in the database then the program will prompt the user that the account
number is already in use.
The view_list function:
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
8TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
This function is used to view all the data in the database. The list is shown using a table. The data
is fetched form the file and displayed on the screen.
erase function:
The erase function is used to delete or remove one account from the banking customer database.
transact function:
Document Page
9TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
The transact account is used to make a transaction for a particular account. The user can
withdraw or deposit using this function. The deposit amount or the withdraw amount is adjusted
to the balance of the customer. The transaction system is working properly and can store and
alter the data in the data file.
Document Page
10TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
The transaction can be done for all the account types. There are four types of accounts in the
database.
see function:
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
11TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
The see function is used to view the account details for a particular user. The program will
prompt the user if they want to check the account details according to the name or the account
number. When the input is provided by the user, the data is retrieved from the database and
returned on the screen.
The menu function and the close function:
Document Page
12TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Outputs generated
The compilation of the program is successful with no errors.
After running the program the output generated:
chevron_up_icon
1 out of 20
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]