0% found this document useful (0 votes)
5 views24 pages

Project Computer Science

The document is a project report by Sanju Gupta for a Computer Science course at Lumbini Secondary School, focusing on C programming. It outlines the objectives, system analysis, requirements, and development of an ATM system using C language. The project aims to enhance understanding of programming concepts and provide practical experience in coding.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views24 pages

Project Computer Science

The document is a project report by Sanju Gupta for a Computer Science course at Lumbini Secondary School, focusing on C programming. It outlines the objectives, system analysis, requirements, and development of an ATM system using C language. The project aims to enhance understanding of programming concepts and provide practical experience in coding.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 24

LUMBINI SECONDARY SCHOOL

PROJECT WORK

(COMPUTER SCIENCE)

SUBMITTED BY: SUBMITTED TO:

NAME: SANJU GUPTA

GRADE: XII ‘J2’ (ARJUN PANDEY)

REGISTRATION NUMBER : 74270729’D’

SUNWAL, NEPAL
2018

1|Page
TRINITY INTERNATIONAL

A Project On
C PROGRAMMING
LANGUAGE

Submitted as a partial fulfillment of requirement of the curriculum of


GRADE-XII (Computer Science) under NEB

Submitted By:
SANJU GUPTA

Under Supervision Of
Mr. Lal Krishna Mallik

Date:
2074/11/28

TRINITY INTERNATIONAL COLLEGE


Dillibazar Height, Kathmandu
Nepal
2|Page
LUMBINI SECONDARY SCHOO
Sunwal 1, Nawalparasi

Certificate
This is to certify that Mr. /Ms. SANJU GUPTA has successfully completed
his project work as per the requirement of the curriculum of GRADE-XII
(Computer Science) under NEB. S/he has completed his project work
within the prescribed period.
Registration No. :- 74270729’D’

(Internal Examiner) (External Examiner)

3|Page
ACKNOWLEDMENT

Firstly, I would like to thank my subject teacher Mr. Arjun Pandey for his
guidance. Furthermore, I would like to thank to my friends for their
support and help on my project work.

I would like to thank my parents for their support without which this
assignment would not be completed.

At last, I would like to thank everyone who helped me to complete this


project.

4|Page
OBJECTIVES

This project comes with the basic objective of helping us students to excel
in ‘C’ programming and coding in ‘C’ language. The main objectives of the
project are enumerated below:-
1. To understand the fundamental concept of C programming
language.
2. To help students develop simple programs using different
features of C programming language such as operators and
expression, I/O functions, control structures, array, string,
structure, union, pointer and data file.

5|Page
Table of contents

1.Acknowledgement………………………………………………..…..4
2.Objective………………………………………………………..…….5
3.System study………………………………………………7
4.System analysis……………………………………………8
5.System Requirements………………………………………9
6.System Design……………………………………………..10
7.System Development (coding)……………………..………………13
8.Implementation………...…………………..…….…………………18
9.Conclusion...………………………………………………….……22
10. Bibliography….……………………………………….………..23

6|Page
System Study

The old system of ticketing at airport. I visited was found to airport to


take information in old and traditional way of recording the tickets ,
leading to many problems such as data loss, data overlapping, seat was
record double, hacked ,it needed more physical space to store data. So
the plan went like this:

What had to be done?


A new system had to be designed meeting the need of related system.

When was it to be done?


A new system was needed probably within a time period of little over 1
month.

What can I do?


A new and powerful application have to be make and its should be
secured.
It have to make in easy way.

7|Page
System Analysis

 Problem identification and definition.


Lack of secure and reliable data management method. It was found
that the old system wasn't able to provide a safe data storage. Data
were lost in the mountain of files and any artificial or natural would
result in its loss without and backup whatsoever.

 Need analysis.
Many of the office, especially the government offices seem to still
use old and traditional way of storing employee data in written files
format. This would take more effort in both recording and storing the
information so a new system was needed that could provide with
better versatile data management system that is easy to understand
and use and also be more capable of providing with backup data.

 Feasibility analysis.
Technical: There was no technical risk in developing this system
whatsoever. The technology was available in order to design this
system and was completed with current available hardware and
software.

Behavioral Feasibility: There was learning curve coming from written


to more sophisticated system but employees had high hope towards
this system.

Operational and time feasibility: The system performed with the


designated functions with existing organization's environment and
human resources. The required for the development of new system
was 1 month and was competed within that period.

8|Page
System Requirements

1. Operating System
Windows 10, 8, 7, Vista and xp.
2. NET 4.5 Frameworks.
3. Turbo c/c++.

9|Page
Algorithm

1. Initialize the variables pin, amount and transaction with 1147, 1000
and ‘y’ respectively.
2. Ask for the pin from user. If the input pin is equal to 1147, then allow
for the further operations.
3. Use switch statement to do the operations like Check Balance,
Withdraw Cash, Deposit Cash and Quit.
4. For Check Balance simply print the variable amount as output and
exit.
5. For Withdraw Cash, first ask the amount to withdraw and store it in
the variable withdraw.
6. If withdraw % 100 != 0, then ask user to enter the amount in
multiplies of 100.
7. If withdraw amount is greater than (amount-500), then print the
output as “INSUFFICENT BALANCE”.
8. Otherwise subtract the variable withdraw from variable amount,
print the amount and exit.
9. For deposit operation, ask the user for amount and store it in the
variable deposit.
10. Add the variable deposit to variable amount, print the amount and
exit.
11. If quit, then finally ask the user if they wish to continue or not. Ask
them to type y/n and store it in the variable transaction.
12. If variable transaction is y/Y, then continue the operation.
Otherwise terminate the while loop by assigning 1 to variable k.
13.Enter the amount you want to transfer, then deduct the transfer
amount from current balance/amount.

10 | P a g e
Start

FLOWCHART Balance = 1000

Read Menu

Menu == Menu
No No

Yes

Read Withdraw Print Balance

Balance = Balance -Withdraw

Read Deposit

Deposit = Deposit + Balance

Read Transfer

Balance = Balance - Transfer

Print Withdraw,deposit,transfer

11 | P a g e
SYSTEM DEVELOPMENT

#include <stdio.h>
unsigned long amount=1000, deposit, withdraw,transfer;
int choice, pin, k;
char transaction ='y';

void main()
{

printf("\n\t\t\t\tATM SYSTEM\n\n");
printf("\t\t\5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \
5 \5 \n");
printf("\t\t\5\t\t\t\t\t\5\n");
printf("\t\t\5\t\t\t\t\t\5\n");
printf("\t\t\5\tWelcome to ATM Service\t\t\5\n");
printf("\t\t\5\t\t\t\t\t\5\n");
printf("\t\t\5\t\t\t\t\t\5\n");
printf("\t\t\5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \5 \
5 \5 \n");

while (pin != 1147)


{
printf("ENTER YOUR SECRET PIN NUMBER:");
scanf("%d", &pin);
if (pin != 1147)
printf("PLEASE ENTER VALID PASSWORD\n");
}
do
{

12 | P a g e
printf("1. Check Balance\n");
printf("2. Withdraw Cash\n");
printf("3. Deposit Cash\n");
printf("4. Transfer Cash\n");
printf("5. Quit\n");
printf("PLEASE ENTER YOUR CHOICE FOR
TRANSACTION\n");
printf("Enter your choice: ");
scanf("%d", &choice);
switch (choice)
{
case 1:
printf("\n YOUR BALANCE IN Rs : %lu ",
amount);
break;
case 2:
printf("\n ENTER THE AMOUNT TO
WITHDRAW: ");
scanf("%lu", &withdraw);
if (withdraw % 100 != 0)
{
printf("\n PLEASE ENTER THE AMOUNT
IN MULTIPLES OF 100");
}
else if (withdraw >(amount - 500))
{
printf("\n INSUFFICENT BALANCE");
}
else
{
amount = amount - withdraw;

13 | P a g e
printf("\n\n PLEASE COLLECT CASH");
printf("\n YOUR CURRENT BALANCE IS
%lu", amount);
}
break;
case 3:
printf("\n ENTER THE AMOUNT TO
DEPOSIT:");
scanf("%lu", &deposit);
amount = amount + deposit;
printf("YOUR BALANCE IS %lu", amount);
break;
case 4:
printf("\n ENTER THE AMOUNT DO YOU
WANT TO TRANSFER:");
scanf("%lu", &transfer);
amount=amount - transfer;
printf("YOUR TRANSFER AMOUNT IS %lu \
n",transfer);
printf("YOUR CURRENT BALANCE IS %lu \
n",amount);
break;
case 5:
printf("\n THANKS FOR USING ATM
SERVICES");
break;
default:
printf("\n INVALID CHOICE");
}
printf("\n\n\n DO U WISH TO HAVE ANOTHER
TRANSCATION?(y/n): \n");
fflush(stdin);
scanf("%c", &transaction);

14 | P a g e
if (transaction == 'n'|| transaction == 'N')
k = 1;
} while (!k);
printf("\n\n THANKS FOR USING OUR ATM SERVICE");
}

15 | P a g e
Display

16 | P a g e
17 | P a g e
18 | P a g e
19 | P a g e
20 | P a g e
21 | P a g e
CONCLUSION

Though the common trend among us is to take these Academic activities


as a formal job (which is correct for a different point of view), I really
enjoyed doing this project. I started the work the first day I got my copy of
assignment and completed 80% including printing and binding jobs within
a week and spent some days on its moderation. I have tried really hard to
make it look perfect. Now, I am Satisfied with my project and the report.
After completion of this project, provided by Trinity International College I
became familiar with different C programming codes and languages and
the different ways of making a program. After completing this project I
have build up confidence in this C programming language.
It too can be concluded that the project of this type aims the student to
get acquainted with different C programming compilers and their use and
helps students to get practical experience. This also develops courage of
student to overcome the challenge they face in programming fields.

22 | P a g e
BIBLIOGRAPHY

• Computer Science (Grade XII)


• www.Google.com
• www.Youtube.com

23 | P a g e
24 | P a g e

You might also like