Transaction Management Using C Programming Language
VerifiedAdded on 2022/10/12
|20
|1253
|493
AI Summary
This report describes a simple implementation of a bank transaction system using C programming language. The functions used in the program, outputs generated, and conclusion are discussed.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/4ca13d14-38b8-4cd7-9b97-6098e43f3040-page-1.webp)
Running Head: TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Name of the Student:
Name of the University:
Author Note:
TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Name of the Student:
Name of the University:
Author Note:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/62dd1a41-8e2f-4557-bbfe-43406cab46bd-page-2.webp)
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
Table of Contents
Introduction......................................................................................................................................3
Discussion........................................................................................................................................3
The functions used in the program..............................................................................................3
Outputs generated..........................................................................................................................12
Conclusion.....................................................................................................................................18
Bibliography..................................................................................................................................20
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/89e56cc6-0d5e-45b3-aa80-4aaf5c9f4bc7-page-3.webp)
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():
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](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/ea2f54f5-0651-4a64-8cef-88ec064d31af-page-4.webp)
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;
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;
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/7af13379-c483-491d-a86f-e7c0eb48d61e-page-5.webp)
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
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](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/7fd0924f-d518-4b1e-b899-49708c79383f-page-6.webp)
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:
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](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/7b5123bb-beb0-4cad-a14c-e9120986d018-page-7.webp)
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:
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:
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/c6afb3ba-fa62-4362-a080-02e75a4e19c1-page-8.webp)
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:
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](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/daa3b28c-0893-4528-8bb1-8584265ec7d7-page-9.webp)
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.
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](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/dd1a3983-757b-48dc-8ead-eb809a741620-page-10.webp)
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:
The transaction can be done for all the account types. There are four types of accounts in the
database.
see function:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/6b9ee4cd-0759-42fa-a2aa-f19f6f838a38-page-11.webp)
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:
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](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/426ed09b-0167-4be3-94de-f76987d29b7d-page-12.webp)
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:
Outputs generated
The compilation of the program is successful with no errors.
After running the program the output generated:
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/3d69dc5e-03a9-4c5f-8f39-5dda4229209c-page-13.webp)
13TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
The user can chose any option. But one account is added first.
Now to check the sixth option which is view all the list of users in the database the output
that is generated is:
The user can chose any option. But one account is added first.
Now to check the sixth option which is view all the list of users in the database the output
that is generated is:
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/85c54976-8037-4fc3-8c56-99edd5c86aff-page-14.webp)
14TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
All the list are fetched from the database and displayed on the screen.
Now to modify the details of an existing user which is the second option:
Now checking the new entered data:
All the list are fetched from the database and displayed on the screen.
Now to modify the details of an existing user which is the second option:
Now checking the new entered data:
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/ca5e7962-039c-4500-b3e0-7e9e4a184a03-page-15.webp)
15TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
The next option is used to delete one record from the database:
Now to check a details of a particular customer:
The next option is used to delete one record from the database:
Now to check a details of a particular customer:
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/39cdac9d-3dd8-4767-a2fe-ddccfdfb265c-page-16.webp)
16TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
After this the transaction function is checked:
After this the transaction function is checked:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/0e71ce08-6cbd-4a3f-8dac-4639901fe993-page-17.webp)
17TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/9b86dfbe-8fb9-4081-b259-0831d4a07ed7-page-18.webp)
18TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Now to check again if the transaction is successful or not check the details of the customer:
Conclusion
The program is implemented using the file system. The data is stored in the file and
fetched from the file and displayed on the screen. The transaction function is also working
Now to check again if the transaction is successful or not check the details of the customer:
Conclusion
The program is implemented using the file system. The data is stored in the file and
fetched from the file and displayed on the screen. The transaction function is also working
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/dda10ce7-bd4d-423f-aac9-98191d60a9fc-page-19.webp)
19TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
properly. The program can add and withdraw money to the desired account. The implementation
of the program has been successfully done. All the functions are working and a main menu is
generated at the beginning, when the user is asked to choose and option to perform that particular
function. The close function is used to show a message to the users when they desire to exit the
program or the transaction system.
properly. The program can add and withdraw money to the desired account. The implementation
of the program has been successfully done. All the functions are working and a main menu is
generated at the beginning, when the user is asked to choose and option to perform that particular
function. The close function is used to show a message to the users when they desire to exit the
program or the transaction system.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
![Document Page](https://desklib.com/media/document/docfile/pages/transaction-management-using-c-programmi/2024/09/27/6fda33bb-24c2-400a-8a14-a6a87ab344ab-page-20.webp)
20TRANSACTION MANAGEMENT USING C PROGRAMMING LANGUAGE
Bibliography
Kanetkar, Y. P. (2016). Let us C. BPB publications.
Ray, B., Posnett, D., Filkov, V., & Devanbu, P. (2014, November). A large scale study of
programming languages and code quality in github. In Proceedings of the 22nd ACM
SIGSOFT International Symposium on Foundations of Software Engineering (pp. 155-
165). ACM.
Bibliography
Kanetkar, Y. P. (2016). Let us C. BPB publications.
Ray, B., Posnett, D., Filkov, V., & Devanbu, P. (2014, November). A large scale study of
programming languages and code quality in github. In Proceedings of the 22nd ACM
SIGSOFT International Symposium on Foundations of Software Engineering (pp. 155-
165). ACM.
1 out of 20
Related Documents
![[object Object]](/_next/image/?url=%2F_next%2Fstatic%2Fmedia%2Flogo.6d15ce61.png&w=640&q=75)
Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
© 2024 | Zucol Services PVT LTD | All rights reserved.