12THCOMPLETE PROJECT FESS (1)
12THCOMPLETE PROJECT FESS (1)
12THCOMPLETE PROJECT FESS (1)
___________________ ___________________
Internal Examiner External Examiner
_________
principal
ACKNOWLEDGMENT
It is with pleasure that I
acknowledge my sincere gratitude
to our teacher MS J.SASIREKHA who
taught and undertook the
responsibility of teaching the
subject computer science. I have
been greatly benefited from her
classes.
2. INTRODUCTION
3. FUNCTIONS
4. FUTURE SCOPE
5. BENEFITS
6. MODULES
7. ER DIAGRAM
8. CODING
9.OUTPUT
10.CONCLUSION
11.BIBLIOGRAPHY
HARDWARE AND SOFTWARE REQUIRED
HARDWARE
1. PC
2. MOBILE PHONE
SOFTWARE
• PYTHON (latest version)
• MYSQL
• PYTHON CONNECTOR
INTRODUCTION
3. Maximize Efficiency
4. Availability of services
6. Transparent process
9. Easy updation
11.more security
FEE
ADMIN MANAGEMENT
SYSTEM
USER
DATABASE
LOGIN
FEES DETAILS
FEES
MANAGEMENT
SYSTEM
EXIT DISPLAY
REQUIRED
STUDENT
DETAILS
DISPLAY ALL
STUDENTS DETAILS
CODE:
#SQL Commands to create both the tables:
#Student table:
#mysql> CREATE TABLE student (roll int(5) Primary key, name
varchar(20) NOT NULL, age int(2) NOT
#NULL, class varchar(3), City varchar(10));
#Fee table:
#mysql> CREATE TABLE fee (roll int(5) references Student(roll),
FeeDeposit int(6) NOT NULL, month
#varchar(10));
import os
import platform
import mysql.connector
import pandas as pd
mydb =
mysql.connector.connect(host='localhost',user='root',passwd='Sas
i@2023',database='SSV',auth_plugin="mysql_native_password")
mycursor=mydb.cursor()
def stuInsert():
L=[]
roll=int(input("Enter the roll number : "))
L.append(roll)
name=input("Enter the Name: ")
L.append(name)
age=int(input("Enter Age of Student : "))
L.append(age)
classs=input("Enter the Class : ")
L.append(classs)
city=input("Enter the City ofthe Student : ")
L.append(city)
stud=(L)
sql="""insert into student(roll,name,age,class,city) values
(%s,%s,%s,%s,%s)"""
mycursor.execute(sql,stud)
mydb.commit()
def stuView():
print("Select the search criteria : ")
print("1. Roll")
print("2. Name")
print("3. Age")
print("4. City")
print("5. All")
ch=int(input("Enter the choice : "))
if ch==1:
s=int(input("Enter roll no : "))
rl=(s,)
sql="""select * from student where roll=%s"""
mycursor.execute(sql,rl)
elif ch==2:
s=input("Enter Name : ")
rl=(s,)
sql="""select * from student where name=%s"""
mycursor.execute(sql,rl)
elif ch==3:
s=int(input("Enter age : "))
rl=(s,)
sql="""select * from student where age=%s"""
mycursor.execute(sql,rl)
elif ch==4:
s=input("Enter City : ")
rl=(s,)
sql="""select * from student where City=%s"""
mycursor.execute(sql,rl)
elif ch==5:
sql="""select * from student"""
mycursor.execute(sql)
res=mycursor.fetchall()
print("The Students details are as follows : ")
print("(ROll, Name, Age, Class, City)")
for x in res:
print(x)
def feeDeposit():
L=[]
roll=int(input("Enter the roll number : "))
L.append(roll)
feedeposit=int(input("Enter the Fee to be deposited : "))
L.append(feedeposit)
month=input("Enter month of fee : ")
L.append(month)
fee=(L)
sql="""insert into FEES(roll,feeDeposit,Month) values
(%s,%s,%s)"""
mycursor.execute(sql,fee)
mydb.commit()
def feeView():
print("STUDENTS FEES DETAILS")
r=input("enter roll no")
q="Select roll,sum(feeDeposit) from FEES group by roll having
roll=%s"
rl=(r,)
mycursor.execute(q,rl)
res=mycursor.fetchall()
for x in res:
print(x)
def removeStu():
roll=int(input("Enter the roll number of the student to be
deleted : "))
rl=(roll,)
sql="""Delete from FEES
where roll=%s"""
mycursor.execute(sql,rl)
sql="""Delete from student where roll=%s"""
mycursor.execute(sql,rl)
mydb.commit()
MenuSet()
def runAgain():
runAgn=input("\nwant To Run Again Y/n: ")
while(runAgn.lower()=='y'):
if(platform.system()=="Windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
MenuSet()
runAgn=input("\nwant To Run Again Y/n: ")
runAgain()
OUTPUT:
This project is good for the student who want to learn python
friendly.
• www.google.com
• www.wikipedia.org