Professional Documents
Culture Documents
Fiza Cs Project
Fiza Cs Project
Python
Python is a computer programming language often used to build websites
and software, automate tasks, and conduct data analysis. Python is a
general-purpose language, meaning it can be used to create a variety of
different programs and isn’t specialized for any specific problems. This
versatility, along with its beginner-friendliness, has made it one of the
most-used programming languages today.
Python is commonly used for developing websites and software, task
automation, data analysis, and data visualization. Since it’s relatively easy
to learn, Python has been adopted by many non-programmers such as
accountants and scientists, for a variety of everyday tasks, like organizing
finances.
What can you do with python? Some things include:
• Data analysis and machine learning
• Web development
• Automation or scripting
• Software testing and prototyping
• Everyday tasks
1
• It’s versatile. Python can be used for many different tasks, from web
development to machine learning.
• It’s beginner friendly, making it popular for entry-level coders.
• It’s open source, which means it’s free to use and distribute, even for
commercial purposes.
• Python’s archive of modules and libraries—bundles of code that
third-party users have created to expand Python’s capabilities—is
vast and growing.
SQL
SQL is Structured Query Language, which is a computer language for
storing, manipulating and retrieving data stored in a relational database.
SQL is the standard language for Relational Database System. All the
Relational Database Management Systems (RDMS) like MySQL, MS
Access, Oracle, Sybase, Informix, Postgres and SQL Server use SQL as
their standard database language.
SQL is widely popular because it offers the following advantages −
• Allows users to access data in the relational database management
systems.
• Allows users to describe the data.
• Allows users to define the data in a database and manipulate that
data.
• Allows to embed within other languages using SQL modules,
libraries & pre-compilers.
• Allows users to create and drop databases and tables.
• Allows users to create view, stored procedure, functions in a
2
database.
• Allows users to set permissions on tables, procedures and views.
MYSQL connector
3
library.
5
OBJECTIVE AND SCOPE OF THE PROJECT
The objective of the software project is to a computerized Data
Management System to automate the admission and retrieval
formalities of a school. It also aims to improve the current database
management system of the school which will help the authorities to
retrieve the up-to-date in the right time.
This software enables us to retrieve, update and delete from a
centralized database designed with the of MySQL. The software only
takes a limited time of the users.
During the development of this Database Management System Project,
python IDLE acted as an important open-source event driven
development system which can be further used in the expandability of
the system in the future.
Despite being the best efforts of our team, there are certain
limitations and boundaries for the project, which do limit the
further scope of this project.
This software can only store records and produce reports in pre-
designed format in soft copy as developed by our team.
6
THEORETICAL KNOWLEDGE
My SQL
Why Python?
Python is a flexible, portable, easy to learn and modifiable
language. So, we are integrating MySQL with Python Interface for
executing any database applications. The various reasons to use
Python for programming database applications are:
• Programming in Python is arguably more efficient and
faster compared to other languages.
• Python is famous for its portability.
8
SYSTEM REQUIREMENTS
HARDWARE REQUIREMENTS
RAM:1GB
Disk Space:1GB
SOFTWARE REQUIREMENTS
9
SYSTEM DESIGN AND DEVELOPMENT
DATABASE DESIGN
An important aspect of system design is the design of data storage
structure. To begin with, a logical model of data structure is developed as
a container object which contains tables, queries, reports data validation
policies enforcement rules or constraints etc. Logical data often
represented as records are kept in different tables after reducing
anomalies and redundancy. The goodness of database design lies in the
table structure and its relationship. This software project maintains a
database named project which contains the following tables.
MENU DESIGN:
The menu system is divided into menu bars, each having a pull-down
menu containing options for a specific task.
S.No Menu Bar Purpose
1 View student profile To view or access student profile
2 Add new profile To add a new student profile
3 Update student profile To update the student profile
4 Delete profile To delete a student profile
To display the facilities
5 Facilities provided
provided by the school
6 Display mark list To display the mark list of a student
TABLE: FEES
Field Type
Sno Int(11)
Classes Varchar(90)
TABLE: MARKLIST
Field Type
Snom int(11)
Admno int(11)
Name Varchar(56)
Classes Varchar(31)
Maths int(11)
Computer int(11)
English int(11)
Physics int(11)
Chemistry int(11)
Biology int(11)
11
TABLE: YELLOW2
Field Type
Sno Int(11)
Events Varchar(1000)
12
SOURCE CODE
import mysql.connector as mc
cb=mc.connect(host='localhost',user='root',passwd='1234',database='bana
na2')
cr=cb.cursor(buffered=True)
def insert():
sno=int(input("enter the serial number:"))
admno=int(input("enter the admission number:"))
name=input("enter the name:")
dob=input("enter the date of birth:")
classes=input("enter the class:")
fathers_name=input("enter name of father:")
mothers_name=input("enter name of mother:")
phno=int(input("enter the phone number:"))
occupation_of_guardian=input("enter occupation of the guardian:")
address=input("enter your address:")
religion=input("enter your religion:")
caste=input("enter your caste:")
siblings=input("enter the number of siblings:")
height=int(input("enter your height:"))
weight=int(input("enter your weight:"))
blood_group=input("enter your blood group:")
cr.execute("insert into yellow2
values(%s,%s,'%s',%s,'%s','%s','%s',%s,'%s','%s','%s','%s','%s',%s,%s,'%s'
)"%(sno,admno,name,dob,classes,fathers_name,mothers_name,phno,occu
13
pation_of_guardian,address,religion,caste,siblings,height,weight,blood_gr
oup))
cr.execute('select * from yellow2 where admno=%s'%(admno))
print(cr.fetchone())
cb.commit()
print()
def delete():
admn=int(input("enter the admission number:"))
cr.execute("delete from yellow2 where admno=%s"%(admn))
cb.commit()
print()
def update():
print('select your choice')
print('1.class')
print('2.phonenumber')
print('3.occupation of guardian')
print('4.address')
print('5.siblings')
print('6.height')
print('7.weight')
bc=int(input('enter your choice which you want to update:'))
bh=int(input("enter the new value:"))
eh=int(input("enter your admission number"))
if bc==1:
cr.execute("update yellow2 set classes=%s where admno=%s"
%(bh,eh))
14
cr.execute('select * from yellow2 where admno=%s' %(eh,))
cb.commit()
print(cr.fetchone())
elif bc==2:
cr.execute("update yellow2 set phno=%s where admno=%s"
%(bh,eh))
cr.execute("select * from yellow2 where admno=%s" %(eh))
cb.commit()
print(cr.fetchone())
elif bc==3:
cr.execute("update yellow2 set occupation_of_guardian='%s' where
admno=%s"%(bh,eh))
cr.execute('select * from yellow2 where admno=%s' %(eh))
cb.commit()
print(cr.fetchone())
elif bc==4:
cr.execute('update yellow2 set address="%s" where
admno=%s'%(bh,eh))
cr.execute('select * from yellow2 where admno=%s'%(eh))
cb.commit()
print(cr.fetchone())
elif bc==5:
cr.execute('update yellow2 set siblings=%s where admno=%s'
%(bh,eh))
cr.execute("select * from yellow2 where admno=%s"%(eh))
cb.commit()
15
print(cr.fetchone())
elif bc==6:
cr.execute('update yellow2 set height=%s where admno=%s'
%(bh,eh))
cr.execute('select * from yellow2 where admno=%s'%(eh))
cb.commit()
print(cr.fetchone())
else:
cr.execute('update yellow2 set weight=%s where admno=%s'
%(bh,eh))
cr.execute('select * from yellow2 where admno=%s'%(eh))
cb.commit()
print(cr.fetchone())
print()
def display():
cv=int(input('enter your admission number:'))
cr.execute('select * from yellow2 where admno=%s'%(cv))
print(cr.fetchone())
print()
def marklistdisplay():
hh=int(input("enter your admission number:"))
a=cr.execute('select * from marklist where admno=%s'%(hh))
print(a)
print()
def marklistinsert():
snom=int(input("enter the serial number:"))
16
admno=int(input("enter the admission number:"))
name=input("enter the name:")
classes=input("enter the class:")
maths=int(input("enter the maths score:"))
computer=int(input('enter the computer score:'))
english=int(input("enter the english score:"))
physics=int(input("enter the physics score:"))
chemistry=int(input("enter the chemistry score:"))
biology=int(input("enter the biology score:"))
cr.execute('insert into marklist
values(%s,%s,"%s","%s",%s,%s,%s,%s,%s,%s)'%(snom,admno,name,cla
sses,maths,computer,english,physics,chemistry,biology))
cr.execute('select * from marklist where admno=%s'%(admno))
print(cr.fetchone())
cb.commit()
print()
def fees():
cr.execute("select * from fees")
print(cr.fetchall())
cb.commit()
print()
def noticeboard():
cr.execute("select * from noticeboard")
print(cr.fetchall())
cb.commit()
print()
17
print(' OXFORD INTERNATIONAL SCHOOL')
print()
print('-'*80)
print()
print()
print(' LET YOUR CHILD ENJOY THE WORLD OF
KNOWLEDGE')
print()
while True:
print('1.VIEW STUDENT PROFILE')
print('2.ADD NEW PROFILE')
print('3.UPDATE STUDENT PROFILE')
print('4.DELETE PROFILE')
print('5.FACILITIES PROVIDED')
print('6.DISPLAY MARKLIST')
print('7.INSERT MARKLIST')
print('8.FEES STRUCTURE')
print('9.NOTICEBOARD')
print('10.EXIT')
ss=int(input('enter your choice:'))
if ss==1:
display()
elif ss==2:
insert()
elif ss==3:
update()
18
elif ss==4:
delete()
elif ss==5:
print(' OUR KEY FEATURES')
print()
print('*.Highly experienced and skilled faculties')
print('*.Air conditioned classrooms with smart board facilities')
print('*.High tech labs')
print('*.Relishing environment with eco garden')
print('*.Open playground with football turf,children_s
park,basketball and badminton courts')
print('*.Provides extra curricular activities')
print('*.Advanced restrooms')
print('*.Canteen with all delicacies')
print()
elif ss==6:
marklistdisplay()
elif ss==7:
marklistinsert()
elif ss==8:
fees()
elif ss==9:
noticeboard()
else:
print("THANK YOU")
break
19
OUTPUT
20
VIEW STUDENT PROFILE
4.DELETE PROFILE
5.FACILITIES PROVIDED
6.DISPLAY MARKLIST
7.INSERT MARKLIST
8.FEES STRUCTURE
9.NOTICEBOARD
10.EXIT
4.DELETE PROFILE
5.FACILITIES PROVIDED
6.DISPLAY MARKLIST
21
7.INSERT MARKLIST
8.FEES STRUCTURE
9.NOTICEBOARD
10.EXIT
22
'pallikaranai', 'hindu', 'general', '1', 180, 79, 'b-ve')
4.DELETE PROFILE
5.FACILITIES PROVIDED
6.DISPLAY MARKLIST
7.INSERT MARKLIST
8.FEES STRUCTURE
9.NOTICEBOARD
10.EXIT
1.class
2.phonenumber
3.occupation of guardian
4.address
5.siblings
6.height
7.weight
23
enter the new value:11
FACILITIES PROVIDED
4.DELETE PROFILE
5.FACILITIES PROVIDED
24
6.DISPLAY MARKLIST
7.INSERT MARKLIST
8.FEES STRUCTURE
9.NOTICEBOARD
10.EXIT
*.Advanced restrooms
29
CONCLUSION & FUTURE ENHANCEMENTS
The solutions are given as a proposal. The suggestion is revised on user
request and optimal changes are made. This loop terminates as soon as the
user is gratified with the proposal. So, on the whole, system analysis is
done to improve the system performance by monitoring it and obtaining
the best throughput possible from it. Therefore, system analysis plays a
crucial role in designing any system. This is basically an interface of
global distribute system to carry out school admission process, check the
fee structure, mark of students and access or change the biodata of
students.
The project is a console application where you can navigate via entering
certain numeric keys. The system can make users work faster and reliable
when it comes to inputting data. Using this system, you can efficiently
check the data of students, add a new student’s data into the database,
check the fee structure of each student and class, check the marks of the
students, check the noticeboard announcements and add modifications to
all the aspects of data. It is an access and storage portal for the school
regarding the students and activities in school.
30
BIBLIOGRAPHY
1. http://www.google.com/
2. http://en.wikipedia.org
Text Books
31