0% found this document useful (0 votes)
304 views

Course Mangement Class 12 Computer Project

This document provides an acknowledgement and summary of a school management project for tracking course details and billing. It thanks various individuals who provided support and guidance including the principal, vice principal, and teachers. It includes an introduction describing how the project automates billing. It lists objectives, provides source code for inserting, viewing, and removing course data from a MySQL database. It also includes sample output and a conclusion.

Uploaded by

Paneendra Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
304 views

Course Mangement Class 12 Computer Project

This document provides an acknowledgement and summary of a school management project for tracking course details and billing. It thanks various individuals who provided support and guidance including the principal, vice principal, and teachers. It includes an introduction describing how the project automates billing. It lists objectives, provides source code for inserting, viewing, and removing course data from a MySQL database. It also includes sample output and a conclusion.

Uploaded by

Paneendra Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

ACKNOWLEDGEMENT

Apart from the efforts of me, the success of any project depends largely on the encouragement and
guidelines of many others. I take this opportunity to express my gratitude to the people who have been
instrumental in the successful completion of this project.

I gratefully acknowledge the contribution of the individuals who contributed in bringing this project
up to this level, who continues to look after me despite my flaws,

I express my deep sense of gratitude to the luminary The Principal, Mangal Vidyalayam who has
been continuously motivating and extending their helping hand to us.

I express my sincere thanks to the academician The Vice Principal, Mangal Vidyalayam for
constant encouragement and the guidance provided during this project

My sincere thanks to MRS.M.REVATHI, MRS. , teachers in charge, Mentor all the above as friend, who
critically reviewed my project and helped in solving each and every problem, occurred during
implementation of the project

The guidance and support received from all the members who contributed and who are contributing
to this project, was vital for the success of the project. I am grateful for their constant support and help.

CONTENTS

1
DESCRIPTION PAGE NO

01 INTRODUCTION 03

02 OBJECTIVES OF THE PROJECT 03

03 SOURCE CODE 04

04 OUTPUT 08

05 CONCLUSION 10

06 BIBLIOGRAPHY 12

INTRODUCTION TO THE PROJECT

2
This project is based on the way in which the billing is done in the stores here it is the school
management .this is helpful for the owners to maintain the list of the sales done on the day or in a year and
also helpful in calculating the profit

OBJECTIVES OF THE PROJECT


The objective of this project is to let the students apply the programming knowledge into a real- world
situation/problem and exposed the students how programming skills helps in developing a good software.

• Write programs utilizing modern software tools.

• Apply object oriented programming principles effectively when developing small to medium sized
projects.

• Write effective procedural code to solve small to medium sized problems.

• Students will demonstrate a breadth of knowledge in computer science, as exemplified in the areas
of systems, theory and software development.

• Students will demonstrate ability to conduct a research or applied Computer Science project,
requiring writing and presentation skills which exemplify scholarly style in computer science.

SOURCE CODE

import os

3
import platform

import mysql.connector

mydb=mysql.connector.connect(host="localhost",user="root",password="root",database="course_match”)

mycursor=mydb.cursor()

def course_insert():

L=[]

c_id=int(input("enter the course id :"))

L.append(c_id)

stream=input("enter the stream name:")

L.append(stream)

c_name=(input("enter available oppurtunities or courses in this stream:"))

L.append(c_name)

course=(L)

sql="insert into corse_details(c_id,stream,c_name)values(%s,%s%s)"

mycursor.execute(sql,course)

mybd.commit()

def cview():

print("Select the search criteria:")

print("2.Stream:")

print("3.All")

ch=int (input("Enter the choice:"))

if ch==1:

s=int(input("c_id:"))

c=(s,)

sql="select *from course_details where c_id=%s"

4
mycursor.execute(sql,c)

elif ch==2:

s=input("enter stream name:")

n=(s,)

sql="select *from course_details where c_name=%s"

mycursor.execute(sql,n)

elif ch==3:

sql="select *from course_details"

mycursor.execute(sql)

res=mycursor.fetchall()

print("the course details as follows:")

print("(course_id,stream_name,course_opportunities)")

for x in res:

print(x)

def removecourse() :

cid=int(input("Enter the course id of the course to be deleted:"))

ci=(cid,)

sql="delete from course details where c_id=%s"

mycursor.execute(sql,ci)

sql="delete from course details where c_id=%s"

mycursor.execute(sql,ci)

mydb.commit()

def menuset():

print("enter 1. to add course")

print("enter 2. to view course")

5
print("enter 3. to remove course")

try:

userinput=int(input("please select any option:"))

except valueerror:

exit("\nHy! thats not a number ")

else:

print("\n")

if(userinput==1):

course_insert()

elif(userinput==2):

cview()

elif (userinput==3):

removecourse()

else:

print("enter correct choice:")

menuset()

def runagain():

runagn=input("want 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("want to run again Y\n:")

6
r

7
OUTPUT

print("################ COURSE MANAGEMENT ###############")

import mysql.connector

mydb=mysql.connector.connect(host="localhost",user="Paneendra",password="PANI",database="course

_match")

mycursor=mydb.cursor()

def course_insert():

L=[]

c_id=int(input("enter the course id :"))

L.append(c_id)

stream=input("enter the stream name:")

L.append(stream)

8
c_name=input("enter available oppurtunities or courses in this stream:")

L.append(c_name)

course=(L)

sql="insert into course_details(c_id,stream,c_name)values({},'{}','{}')".format(c_id,stream,c_name)

mycursor.execute(sql)

mydb.commit()

def cview():

print("Select the search criteria:")

print("1.C_id")

print("2.Stream")

print("3.All")

ch=int (input("Enter the choice:"))

if ch==1:

s=int(input("Enter c_id you want to search:"))

sql=("select *from course_details where c_id={}".format(s))

mycursor.execute(sql)

#mydb.commit()

res=mycursor.fetchall()

for x in res:

print(x)

elif ch==2:

s=input("enter stream name:")

sql=("select *from course_details where c_name={}").format(s)

9
mycursor.execute(sql)

#mydb.commit()

else:

sql=("select *from course_details")

mycursor.execute(sql)

res=mycursor.fetchall()

print("the course details as follows:")

print("(course_id,stream_name,course_opportunities)")

for x in res:

print(x)

mycursor.execute(sql)

#mydb.commit()

def removecourse():

cid=int(input("Enter the course id of the course to be deleted"))

ci=cid

sql=("delete from course_details where c_id={}".format(ci))

print("the Course details of the",ci,"was deleted")

def main():

while True:

print("1.To add course")

print("2.To view course")

print("3.To remove course")

print("4.To Exit")

ch=int(input("Enter your choice(1-4):"))

10
if ch==1:

course_insert()

elif ch==2:

cview()

elif ch==3:

removecourse()

elif ch==4:

break

main()

CONCLUSION

11
This prevents a lot of time and money. The work becomes fully automated and any information regarding
the organization can be obtained by clicking the button. Moreover, now it’s an age of computers of and
automating such an organization gives the better look.

12
BIBLIOGRAPHY

• Computer science With Python - Class XII By : Sumita Arora


• A Project Report On COURSE DETAILS
WEBSITE:
www.python.org,
www.freecodecamp.org,
www.w3schools.com.

***

13

You might also like