CS project
CS project
2 JALAHALLI EAST
BANGALORE
A PROJECT REPORT
ON
DAILY TASK MANAGER
FOR
CBSE 2024-25 EXAMINATION
[ AS A PART OF THE COMPUTER SCIENCE (083)]
Submitted by - Rishabh
Name – Rishabh & Priyanshu
Class – XII A
UNDER GUIDANCE:
MRS. LEENA A
PGT (COMP.SC)
INDEX
1. CERTIFICATE
2. ACKNOWLEDGEMENT
3. INTRODUCTION
4. NEED OF THE PROJECT
5. SOFTWARE USED
6. CODING
7. OUTPUT
8. BIBLOGRAPHY
CERTIFICATE
• MYSQL.
• MYSQL-Connector-Python.
SQL CODES: -
PYHTHON CODES: -
import time
task=[]
incomp=[]
def display(task):
database="db")
cr=c.cursor()
try:
if minutes <= 0:
return
except ValueError:
while True:
print("1. Physics")
print("2. Chemistry")
print("3. Mathematics")
print("6. Done")
if sub==1:
")
p=cr.fetchall()
for i in (p):
print(p.index(i)+1,i[2])
task.append(p[chap-1][2])
elif sub==2:
")
chem=cr.fetchall()
for i in (chem):
print(chem.index(i)+1,i[2])
chap=int(input("\nEnter the Chapter number you want to add a
task.append(chem[chap-1][2])
elif sub==3:
")
m=cr.fetchall()
for i in (m):
print(m.index(i)+1,i[2])
task.append(m[chap-1][2])
elif sub==4:
")
Science"')
cs=cr.fetchall()
for i in (cs):
print(cs.index(i)+1,i[2])
task.append(cs[chap-1][2])
elif sub==5:
")
e=cr.fetchall()
for i in (e):
print(e.index(i)+1,i[2])
task.append(e[chap-1][2])
elif sub==6:
break
else:
for i in task:
print(i)
minutes ,"minutes")
time.sleep(1)
seconds -= 1
c.close()
def add():
c = mysql.connect(
host='localhost',
database='db',
user='Rishabh',
password='root'
cr = c.cursor()
c.close()
def piechart(task):
d={}
for i in range(1,len(task)+1):
perc=int(input(":-"))
d[task[i-1]]=perc
task_names = list(d.keys())
task_percentages = list(d.values())
plt.xlabel('Tasks')
plt.show()
def after(task,incomp):
database="db")
cr=c.cursor()
if comp=='y':
elif comp=='n':
print("\n")
for i in task:
print(task.index(i)+1,i)
print("\n")
incomp.append(task[inco-1])
print(incomp)
add()
if gp=='y':
piechart(task)
elif gp=='n':
print("\nThank you for using Daily Task Manager")
else:
else:
def mistakes():
database="db")
cr=c.cursor()
r=cr.fetchall()
for i in r:
print(i[1])
c.close()
def menu():
while True:
if q==1:
display(task)
elif q==2:
after(task,incomp)
elif q==3:
mistakes()
elif q==4:
break
else:
menu()
OUTPUT
BIBLOGRAPHY
2. https://www.google.com/
3. https://docs.python.org/3/library/time.html
4. https://matplotlib.org/2.0.2/users