Computer Project C Class Xii Sample
Computer Project C Class Xii Sample
INTRODUCTION
1|Page
1.1 Computer Applications And Importance
Computers have brought about a revolution across all industries. They have changed the face
of society. They are no longer specialized tools to be used by specially trained people. They
are ubiquitous and used in almost every sphere of life. Computers are the best means for
storage and management of data, they can serve as huge knowledge bases and can be
harnessed for all sorts of financial transactions owing to their processing power and storage
capacities. As computers are a daily utility, they have gained immense importance in day-to-
day life. Their increasing utility has made computer education the need of the day.
By computer education, we mean, gaining the know-how of the basic concepts related to a
computer and gaining the basic knowledge of computer operation. Knowing about the basic
components of a computer, the basic concepts behind the use of computers and the know-how
of some of the elementary computer applications constitutes computer education. Learning
about the computer basics followed by a practical experience of using a computer is the key
to computer education. As computers are widely used today, acquiring computer education is
the need of the day.
Computers are not only storage devices and processing units, but also are excellent
communication media. They are the means to access the Internet and get connected to the
world. They are also an effective audio-visual media. Computers can be used to access a vast
knowledge base and search for information archives over the Internet. Only computer
education can facilitate the use of computers for purposes of communication and
entertainment.
Computer knowledge coupled with certain other job skills increases one's chances of getting
a job. Those with knowledge of computers are considered trainable for many kinds of jobs.
As most of the jobs involve the use of computers, computer education is an eligibility
criterion for almost all the modern-day jobs. Higher education involving network
administration, hardware maintenance or software skills open doors for brighter job
opportunities.
2|Page
1.2 Present State of Art and Its Shortcoming
Present day School management system are high complicated and a user is not able to be
more interactive because of understanding problems and but all of these platforms lack
certain maintenancefeatures and options which can be helpful for a user to enter its daily
records and his. Thesesoftware do not offer a wide perspective of user friendly multitasking
options. Some disadvantages of the present state software’s are:
Based on complex programming language: Most of the calculators in present are Java
based programs which is much complex programming language to understand for a
user.
Platform independent: Many of the current systems do not support multiple systems.
It requires specific and high system configuration which is not possible on multiple
platforms.
Less user interactive: A basic school management system provides limited options and
is more complex as it gets advance.
3|Page
Chapter 2
PROBLEM
FORMULATION
4|Page
2.1 Drawbacks of Existing System
If user by mistake enter a wrong date then the user has to enter (his/her) full information
again .
This project intends to introduce more user friendliness in the various activities such as
record maintenance, and searching..
All the control is under the administrator and the other members have the rights to just see
the records not to change any transaction or entry.
5|Page
Chapter 3
System AnalysisAnd
Design
6|Page
3.1Choice of Language- Python
Python was developed by Guido van Rossum in the late 80s and early 90s at National
Research Institute for Mathematics and Computer Science in the Netherlands. It was first
using significant whitespace. It provides constructs that enable clear programming on both
small and large scales. In July 2018, Van Rossum stepped down as the leader in the
language community.
Python is derived from many other languages, including ABC, Modulla-3, C, C++, Algol-68,
Python is processed at runtime by the interpreter. User does not need to compile program
before executing it. This is similar to PERL and PHP. User can actually sit at the prompt and
interact with the interpreter directly to write programs. Python supports object oriented style
or technique of programming that encapsulates code within the objects. Python is a great
language for beginner-level programmers and supports the development of a wide range of
7|Page
Few keyfeatures of python
Python is an easy to learn and read language. It has few keywords, simple structure
and a clearly defined syntax. This allows the Student to pick up the language properly.
Python code is more clearly defined and visible to the eyes.
In addition to the above facts, it is an easy to maintain language.
Broad standard library:
Python’s bulk of the library is very portable and cross-platform compatible on UNIX
(from Red Hat), Windows (Microsoft) and Macintosh (Apple).
Interactive Mode:
Python has support for an interactive mode which allows interactive testing
debugging of snippets of code.
Portable:
Python can run on variety of hardware platforms and has the same interface on all
platforms.
Extendable:
User can add low-level modules to the python interpreter. These modules enable
programmers to add to or customize their tools to be more efficient.
Database:
Python provides interfaces to all major commercial databases. Examples – MySQL,
Oracle.
GUI Programming:
Python supports GUI and applications that can be created and ported to many system
calls, libraries and windows system, such as Windows, MFC, Macintosh and the X
Window system of UNIX.
Scalable:
Python provides a better structure and support for large programs than shell scripting.
Free and open source:
Python language is freely available i.e., without any cost (from www.python.org). And
not only is it free, its source code is also available.
Its Completeness:
When we install python, we get everything that we need to do the real work. We do
not need to download and install additional libraries; all types of required
functionality is available through various modules of python standard library.
8|Page
Chapter 4
SYSTEM
IMPLEMENTATION
9|Page
4.1 Hardware Required
Processors:
o Intel Core™ i5 processor 4300M at 2.60 GHz or 2.59 GHz (1 socket, 2 cores, 2 threads
per core), 8 GB of DRAM
o Intel® Xeon® processor E5-2698 v3 at 2.30 GHz (2 sockets, 16 cores each, 1 thread per
core), 64 GB of DRAM
o Intel® Xeon Phi™ processor 7210 at 1.30 GHz (1 socket, 64 cores, 4 threads per core),
32 GB of DRAM, 16 GB of MCDRAM (flat mode enabled)
Disk space: 2 to 3 GB
Operating systems: Windows® 10, macOS*, and Linux*
NOTE: When python is downloaded, all the files necessary to execute the program get
installed at that moment only. Thus, while using python, user need not worry about
installation of development tools, compatible tools and python packages.
10 | P a g e
4.2 Software Requirements
Interactive mode
Interactive mode of python is also known as python shell or python prompt. It accepts one
command at a time and runs that command. Interactive mode is great for quickly and
conveniently running single lines or blocks of code. The ‘>>>’ indicates that the shell is ready
to accept interactive commands.
For Example, if the user wants to print ‘this is interactive mode’ then, simply type the
appropriate code and hit enter.
Script mode
If instead the user is working with more than a few lines of code, or the user is ready to write
an actual program, script mode comes in handy. Script mode is also known as python file.
Instead of having to run one line or block of code every time, one can type up all of the code
in one text file, or script, and run all the code at once using appropriate syntax.
This project has been created on the script mode.
The source code of this project has been prepared on the script mode with all the necessary
documentations to enhance its readability
An example of script mode of python: to print the text ‘this is the script mode’ one needs to
write it text with appropriate syntax on the script mode. After saving with .py extension, and
running the code, the result is displayed on the prompt or command line as shown in the
figure below.
12 | P a g e
Chapter 5
RESULT AND
DISCUSSION
13 | P a g e
5.1 Interpretation of Results
The system is giving the expected performance. Being a school management program it provides
with well maintained records and a user details security which is a major step in user friendly
application development.
Scope:
The present system automates the entire working of the institutes because it give’saccurate and
precise result with multiple functionality linking itself to various software. The project helps in
saving valuable time of the students and Administration. The project can be used by teachers,
students and administration for different purposes. The college will find it easy to use this software
and hence they will benefit by using it.
14 | P a g e
Chapter 6
CONCLUSION
15 | P a g e
6.1 Advantages and Special Features of the System
This project helps the User to check and calculate in more efficient way.
This project provides to user have a check on his room activities , his restaurant order , bill and
secure payment .
It is easy to use, since it uses interface in a very user friendly manner.
System is yet to be implemented after completion of its full version.
The usage of interactive features in the system increases the efficiency and decreases the effort.
System is completely tested on the accounts of internal & external working.
No wastage of paper, environmental friendly.
The program has database backup for storing login info.
16 | P a g e
6.2 Limitations of the Project
As no system or software is ideal and perfect, this project also has some limitations in terms of
method used, technology, scope and functionality.
Besides day to day activities this system is yet to be developed for advance school features and
more user interface and highly GUI interactive
Some new functions can make this program even better.
Can be rebuild on client side to work smoothly on a large environment like Internet.
Can be upgraded from macro to standard version and from standard to full version.
.
17 | P a g e
BIBLIOGRAPHY
&
REFERENCES
18 | P a g e
BOOKS:
19 | P a g e
INPUT CODE
20 | P a g e
importmysql.connector as sq
#PROGRAM FOR DATABASE CONNECTIVITY
db=sq.connect(host='localhost',user='root',passwd='dsbm')
cur=db.cursor()
cur.execute("create database if not exists schoolmgt")
cur.execute("use schoolmgt;")
def connect():
ifdb.is_connected==False:
print("notconnected")
returndb
def select():
print("-----------------------WELCOME TO SCHOOL
MANAGEMENT-------------------------")
print("1.STUDENT MANAGEMENT")
print("2.EMPLOYEE MANAGEMENT")
print("3.DISPLAY FEE")
print("4.ATTENDANCE MANAGEMENT")
print("5.DISPLAY SCHOOL DETAILS")
insertst()
print("MODIFIED RECORDS ARE")
displayst()
elif c=='b':
defupdatest():
con=connect()
cur=con.cursor()
clas=input("ENTER NEW CLASS:-")
admno=int(input("ENTER ADMISSION NO. :-"))
cur.execute("update st set class=%s where admno=%d"%(clas,admno))
con.commit()
updatest()
print("\nMODIFIED DETAILS ARE:-\n")
displayst()
elif c=='c':
defdeletest():
con=connect()
cur=con.cursor()
admno=int(input("ENTER ADMISSION NO. TO BE DELETED:-"))
ans=input("ARE YOU SURE YOU WANT TO DELETE(y/n):-")
ifans=='y' or ans=='Y':
cur.execute("delete from st where admno=%d"%(admno))
con.commit()
deletest()
print("\nMODIFIED DETAILS ARE:-\n")
displayst()
22 | P a g e
elifch==2:
print("/n------------------WELCOME TO EMPLOYEE------------------/n")
print("a. NEW EMPLOYEE")
print("b. UPDATE STAFF DETAILS")
print("c. DELETE EMPLOYEE")
e=input("enter your choice(a-c)")
print("\nEXISTING RECORDS ARE\n")
defdisplayemp():
con=connect()
cur=con.cursor()
cur.execute("select * from emp")
for i in cur.fetchall():
empno=i[0]
name=i[1]
job=i[2]
hiredate=i[3]
print("(empno=%d,name=%s,job=%s,hiredate=%s)"%
(empno,name,job,hiredate))
displayemp()
if e=='a':
definsertemp():
empno=int(input("enter empno:-"))
name=input("enter employee name:-")
job=input("enter designation:-")
hiredate=input("enter hiredate(year-month-time):-")
con=connect()
cur=con.cursor()
cur.execute("insert into
emp(empno,name,job,hiredate)values('%d','%s','%s','%s')"%
(empno,name,job,hiredate))
con.commit()
insertemp()
defdisplayemp():
con=connect()
cur=con.cursor()
cur.execute("select * from emp")
for i in cur.fetchall():
empno=i[0]
name=i[1]
job=i[2]
hiredate=i[3]
23 | P a g e
print("(empno=%d,name=%s,job=%s,hiredate=%s)"%
(empno,name,job,hiredate))
updateemp()
print("\nMODIFIED RECORDS ARE\n")
displayemp()
elif e=='c':
defdeleteemp():
con=connect()
cur=con.cursor()
d=int(input("ENTER EMPNO TO BE DELETED:-"))
ans=input("ARE YOU SURE YOU WANT TO DELETE RECORD(y/n):-")
ifans=='y' or ans=='Y':
cur.execute("delete from emp where empno=%d"%(d))
con.commit()
deleteemp()
print("\nMODIFIED RECORDS ARE\n")
displayemp()
elifch==3:
print("\n--------------WELCOME TO DISPLAY FEES------------------\n")
print("a.INSERT FEES")
print("b.UPDATE FEES")
print("c.EXEMPT FEES")
print("\n EXISTING RECORDS ARE:-\n")
defdisplayfee():
con=connect()
cur=con.cursor()
cur.execute("select * from fees")
24 | P a g e
for i in cur.fetchall():
admno=i[0]
fees=i[1]
monthunpaid=i[2]
print("(admno=%d,fees=%f,monthunpaid=%s)"%(admno,fees,monthunpaid))
displayfee()
insertfee()
print("\nMODIFIED RECORDS ARE:-\n")
displayfee()
elif f=='b':
defupdatefee():
month=input("ENTER MONTH TO BE UPDATED:-")
admno=int(input("ENTER ADMISSION NO.:-"))
con=connect()
cur=con.cursor()
cur.execute("update fees set monthunpaid='%s'whereadmno=%d"%
(month,admno))
con.commit()
updatefee()
print("\nMODIFIED RECORDS ARE\n")
displayfee()
25 | P a g e
elif f=='c':
defdeletefee():
admo=int(input("ENTER ADMISSION NO.:-"))
a=input("ENTER ARE YOU SURE YOU WANT TO EXEMPT
FEE(y/n):-")
con=connect()
cur=con.cursor()
if a=='Y' or a=='y':
cur.execute("delete from fees where admno=%d"%(admo))
con.commit()
deletefee()
print("\nMODIFIED RECORDS ARE\n")
displayfee()
elifch==4:
print("\n------------------WELCOME TO ATTENDANCE
MANAGEMENT------------------\n")
print("a.INSERT DETAILS")
print("b.UPDATE DETAILS")
print("c.DELETE DETAILS")
print("\nEXISTING DETAILS ARE:-")
defdisplayatt():
con=connect()
cur=con.cursor()
cur.execute("select * from attendance")
for i in cur.fetchall():
admno=i[0]
name=i[1]
present=i[2]
totalpresent=i[3]
per=i[4]
print("(admno=%d,name=%s,present=%d,totalpresent=%d,per=
%f)"%(admno,name,present,totalpresent,per))
displayatt()
a=input("enter your choice")
if a=='a':
definsertatt():
admno=int(input("ENTER ADMISSION NO.:-"))
name=input("ENTER STUDENT NAME:-")
present=int(input("ENTER CLASS ATTENDED DURING THE YEAR:-"))
totalpresent=int(input("ENTER TOTAL CLASS ATTENDED DURING THE
YEAR:-"))
per=float(input("ENTER PERCENTAGE:-"))
26 | P a g e
con=connect()
cur=con.cursor()
cur.execute("insert into attendance(admno,name,present,totalpresent,per) values
('%d','%s','%d','%d','%f')"%(admno,name,present,totalpresent,per))
con.commit()
insertatt()
print("\nMODIFIED DETAILS ARE:-\n")
displayatt()
elif a=='b':
defupdateatt():
present=int(input("ENTER CLASS ATTENDED DURING THE YEAR:-"))
per=float(input("ENTER PERCENTAGE:-"))
admno=int(input("ENTER ADMISSION NO.:-"))
con=connect()
cur=con.cursor()
cur.execute("update attendance set present='%d',per='%f' where
admno='%d'"%(present,per,admno))
con.commit()
updateatt()
print("\nMODIFIED DETAILS ARE:-\n")
displayatt()
elif a=='c':
defdeleteexam():
admno=int(input("ENTER ADMISSION NO.:-"))
f=input("ARE YOU SURE YOU WANT TO DELETE(y/n):-")
con=connect()
cur=con.cursor()
if f=='y' or f=='Y':
cur.execute("delete from attendance where admno='%d'"%(admno))
con.commit()
deleteexam()
print("\nMODIFIED DETAILS ARE:-\n")
displayatt()
elifch==5:
print("\n------------------WELCOME TO DISPLAY SCHOOL RELATED
DETAILS------------------\n")
print("a.INSERT DETAILS")
print("b.UPDATE DETAILS")
print("c.DELETE DETAILS")
27 | P a g e
print("\nEXISTING DETAILS ARE:-\n")
defdisplaysc():
con=connect()
cur=con.cursor()
cur.execute("select * from school")
for i in cur.fetchall():
sid=i[0]
sname=i[1]
noofstudent=i[2]
noofemployee=i[3]
nooflabs=i[4]
print("(id=%d,sname='%s',noofstudent=%d,noofemployee=
%d,nooflabs=%d)"%(sid,sname,noofstudent,noofemployee,nooflabs))
displaysc()
s=input("ENTER YOUR CHOICE")
if s=='a':
definsertsc():
sid=int(input("ENTER SCHOOL ID:-"))
sname=input("ENTER SCHOOL NAME:-")
noofstudent=int(input("ENTER NUMBER OF STUDENT:-"))
noofemployee=int(input("ENTER NUMBER OF EMPLOYEE:-"))
nooflabs=int(input("ENTER NUMBER OF LABS:-"))
con=connect()
cur=con.cursor()
cur.execute("insert into
school(id,sname,noofstudent,noofemployee,nooflabs)values(%d,'%s',%d,%d,
%d)"%(sid,sname,noofstudent,noofemployee,nooflabs))
con.commit()
insertsc()
print("\nMODIFIED DETALIS ARE:-\n")
displaysc()
elif s=='b':
defupdatesc():
noofstudent=int(input("ENTER NUMBER OF STUDENT:-"))
noofemployee=int(input("ENTER NUMBER OF EMPLOYEE:-"))
nooflabs=int(input("ENTER NUMBER OF LABS:-"))
sid=int(input("ENTER SCHOOL ID:-"))
con=connect()
cur=con.cursor()
cur.execute("update school set noofstudent=%d,noofemployee=%d,nooflabs=%d
28 | P a g e
where id=%d"%(noofstudent,noofemployee,nooflabs,sid))
con.commit()
updatesc()
print("\nMODIFIED DETALIS ARE:-\n")
displaysc()
elif s=='c':
defdeletesc():
sid=int(input("ENTER SCHOOL ID:-"))
con=connect()
cur=con.cursor()
cur.execute("delete from school where id=%d"%(sid))
con.commit()
deletesc()
print("\nMODIFIED DETALIS ARE:-\n")
displaysc()
select()
29 | P a g e
OUTPUT
30 | P a g e
31 | P a g e
32 | P a g e
33 | P a g e
34 | P a g e
35 | P a g e
36 | P a g e
37 | P a g e
38 | P a g e
39 | P a g e
40 | P a g e