0% found this document useful (0 votes)
19 views14 pages

PPS Project (Akshaya-B3) CSM-B

The document presents a report on the Account Management System (AMS) developed as a C programming project for a Bachelor of Technology degree in Computer Science Engineering. It details the system's functionalities, including account creation, money transfer, balance checking, and login capabilities, along with the implementation and testing of the program. The report concludes with a discussion on future enhancements, such as interest calculation and integration with other systems.

Uploaded by

appalabalaji5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views14 pages

PPS Project (Akshaya-B3) CSM-B

The document presents a report on the Account Management System (AMS) developed as a C programming project for a Bachelor of Technology degree in Computer Science Engineering. It details the system's functionalities, including account creation, money transfer, balance checking, and login capabilities, along with the implementation and testing of the program. The report concludes with a discussion on future enhancements, such as interest calculation and integration with other systems.

Uploaded by

appalabalaji5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

A

Report on
ACCOUNT MANAGEMENT SYSTEM (AMS)

COMPUTER PROGRAMMING FOR ENGINEERING PROJECT


Submitted in partial fulfilment of the requirements
for The Award of the degree of

BACHELOR OF TECHNOLOGY
In
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING (AI & ML)
By
S. AKSHAYA- 24K81A66B3
Under the esteemed guidance of

Mrs. A.LAXMI TEJ A


ASSISTANT PROFESSOR
DEPARTMENT OF FRESH MAN ENGINEERING

St. MARTIN’S ENGINEERING COLLEGE


UGC AUTONOMOUS
NBA & NAAC A+ Accredited
Dhulapally, Secunderabad –
500100
St. MARTIN’S ENGINEERING COLLEGE
UGC AUTONOMOUS
NBA & NAAC A+ Accredited
Dhulapally, Secunderabad –
500100

CERTIFICATE

This is certify that the C PROGRAMMING PROJECT entitled


“(ACCOUNT MANAGEMENT SYSTEM)” is a bonafide record of
independent work done by S. AKSHAYA (24K81A66B3) under
my supervision and guidance, submitted to St. MARTIN’S
ENGINEERING COLLEGE, Hyderabad, in partial fulfilment for
the award of the Degree of Bachelor of Technology in Computer
Science Engineering (AI & ML) in the year 2024-2025.

Project Internal Guide Head of Department


Mrs. A. Laxmi Teja Dr. D.Ranadheer Reddy
(Dept. of FME) (Professor and HOD)

…………………………….. …………………………………

Group Director
(Dr. P.SANTOSH KUMAR PATRA)
CONTENTS

ABSTRACT 1

CHAPTER 1- APPROACH 1

CHAPTER 2- SYSTEM IMPLEMENTATAION 2

CHAPTER 3- COMPLETE PROGRAM 3-6

CHAPTER 4- OUTPUT 7-8

CHAPTER 5- CONCLUSION 9

CHAPTER 6- FUTURE ENHANCEMENT 10


ABSTRACT

Bank Management System means banks provide comprehensive electronic fund transfer
and payment solutions that enable thousands of Citizens, Financial Institutions and
hundreds of business the convenience of receiving and transferring their funds online
This project is aimed at developing Bank Management System for customer.The system is
a window Application that can be accessed throughout the organization and outside as well
with proper login provided
This Project is planned to be having the view of distributed architecture with centralized storage
of the database, The Application for the storage of the data has been planned.

APPROACH

let’s discuss the approach in detail, covering all the functions and their explanation in
detail-
 Create a Menu in the main function and create different functions for the Menu,
which will be called using switch case statements. There are four different functions-
 account()- This function is used to create a new account.
 transfermoney()- This function is used to transfer money to the account
 checkbalance()- This function is used to check the balance in the account.
 login()- This function is used to login into the account.
 First, create an account of our user by calling the account() function after the
creation of an account, store all the data into a file using file handling functions.
 Then the user is able to transfer the amount to other users, for that
transfermoney() function is called, and for checking the current balance in the
account call checkbalance() function.
Concepts of file handling will be used to store the data of the users, and then read all
data from that particular file, store structures in a file because they are easy to write and
read.

01
SYSTEM IMPLEMENTATION

Let’s look at the C implementation of each of the modules of the program and finally
consolidate all the modules together and create a full working program.

1. Create a Bank Account-


Take all the input from the user and make a structure for it to store the data in a file.
2. 2. Transfer Money-
Take the username of another user to whom we want to transfer the money and open
his record in the file and write the amount to the file.
3. Check Balance-
Opening a file in which all the transfer records are written and read them one by one
and match the username passed in the function to fetch the correct transfer records.
4. Login Functionality-
To add Login functionality, we are opening the file and matching the
username provided by the user at the time of registration, and logging in to him if
the username is correct and matches with the record present in our file.

02
Complete Program-

Below is the complete C program for the bank system using the concepts of file
handling-

#include <stdio.h>
#include <string.h>

#define MAX_ACCOUNTS 100

// Structure to store account information


typedef struct {
int accountNumber;
char name[50];
double balance;
} Account;

// Function prototypes
void createAccount(Account accounts[], int *numAccounts);
void viewAccounts(Account accounts[], int numAccounts);
void deposit(Account accounts[], int numAccounts);
void withdraw(Account accounts[], int numAccounts);
int findAccountIndex(Account accounts[], int numAccounts, int accountNumber);

int main() {
Account accounts[MAX_ACCOUNTS];
int numAccounts = 0;
int choice;

while (1) {
printf("\n--- Account Management System ---\n");
printf("1. Create Account\n");
printf("2. View All Accounts\n");
printf("3. Deposit\n");
printf("4. Withdraw\n");
printf("5. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);

switch (choice) {
case 1:
createAccount(accounts, &numAccounts);
break;
case 2:
viewAccounts(accounts, numAccounts);
break;
case 3:
deposit(accounts, numAccounts);
break;
case 4:
withdraw(accounts, numAccounts);
break;
case 5:
printf("Exiting program. Goodbye!\n");
return 0;
default:
printf("Invalid choice. Please try again.\n");
}
}
}

// Function to create a new account


void createAccount(Account accounts[], int *numAccounts) {
if (*numAccounts >= MAX_ACCOUNTS) {
printf("Error: Cannot create more accounts.\n");
return;
}

Account newAccount;
printf("Enter account number: ");
scanf("%d", &newAccount.accountNumber);
printf("Enter name: ");
scanf(" %[^"]s", newAccount.name);
printf("Enter initial balance: ");
scanf("%lf", &newAccount.balance);

accounts[*numAccounts] = newAccount;
(*numAccounts)++;

printf("Account created successfully!\n");


}

// Function to view all accounts


void viewAccounts(Account accounts[], int numAccounts) {
if (numAccounts == 0) {
printf("No accounts available.\n");
return;
}
printf("\n--- Account Details ---\n");
for (int i = 0; i < numAccounts; i++) {
printf("Account Number: %d\n", accounts[i].accountNumber);
printf("Name: %s\n", accounts[i].name);
printf("Balance: %.2lf\n", accounts[i].balance);
printf("-------------------------\n");
}
}

// Function to deposit money into an account


void deposit(Account accounts[], int numAccounts) {
int accountNumber;
double amount;

printf("Enter account number: ");


scanf("%d", &accountNumber);

int index = findAccountIndex(accounts, numAccounts, accountNumber);


if (index == -1) {
printf("Error: Account not found.\n");
return;
}

printf("Enter amount to deposit: ");


scanf("%lf", &amount);

if (amount <= 0) {
printf("Error: Invalid amount.\n");
return;
}

accounts[index].balance += amount;
printf("Deposit successful! New balance: %.2lf\n", accounts[index].balance);
}

// Function to withdraw money from an account


void withdraw(Account accounts[], int numAccounts) {
int accountNumber;
double amount;

printf("Enter account number: ");


scanf("%d", &accountNumber);

int index = findAccountIndex(accounts, numAccounts, accountNumber);


if (index == -1) {
printf("Error: Account not found.\n");
return;
}

printf("Enter amount to withdraw: ");


scanf("%lf", &amount);

if (amount <= 0) {
printf("Error: Invalid amount.\n");
return;
}

if (accounts[index].balance < amount) {


printf("Error: Insufficient funds.\n");
return;
}

accounts[index].balance -= amount;
printf("Withdrawal successful! New balance: %.2lf\n", accounts[index].balance);
}

// Helper function to find an account index by account number


int findAccountIndex(Account accounts[], int numAccounts, int accountNumber) {
for (int i = 0; i < numAccounts; i++) {
if (accounts[i].accountNumber == accountNumber) {
return i;
}
}
return -1;
}

06
OUTPUT

07
08
CONCLUSION

This project was successfully completed within the time span allotted, The Project Bank
Management System has been developed in C Language. All the modules ae tested
separately and put together to form the main system. Finally the system is tested with real
data and everything worked successfully. Thus the system has fulfilled the entire objective
identified, The System had been developed in an attractive dialogs fashions.
So User with minimum knowledge about the computers can also operate the system very
easily. It will make easy interactions between user and store. The speed and accuracy are
maintained in proper Way.

09
FUTURE ENHANCEMENT

This project was developed to fulfill user requirement. However there are lots of scope
to improve the performance of the banking system in the area of user interface, database
performance and query processing time. So there are many things for future enhancement of
this project. The future enhancements that are possible are as Follows.
• Interest calculation system is not implemented yet. It can be enhanced later. Linking and
integration of any legacy system for accountingIntegration with other Bank and Government
agencies through web services.
• Connection to third-party OLAP applications.
• Electronic Data interchange (EDI) system for ATM machine.

10

You might also like