CS Project

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 21

TABLE OF CONTENTS [ T O C ]

SER DESCRIPTION PAGE NO

01 ACKNOWLEDGEMENT 04

02 INTRODUCTION 05

03 OBJECTIVES OF THE PROJECT 05

04 PROPOSED SYSTEM 06

05 SOURCE CODES 07

06 OUTPUTS 19

HARDWARE AND SOFTWARE REQUIREMENTS AND


07 23
BIBLIOGRAPHY

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 express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project.

I express my heartfelt gratitude to my parents for constant encouragement


while carrying out 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,


Prudence School, Dwarka 22 who has been continuously motivating and extending
their helping hand to us.

I am overwhelmed to express my thanks to The Administrative Officer,


Prudence School, Dwarka 22 for providing me an infrastructure and moral support
while carrying out this project in the school.

I shall fail in my duty if I didn’t thank Ms. Smitha Balakrishnan, Project In-
charge, A guide, Mentor all the above a 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.
PROJECT ON RESULT CARD EVALUATION SYSTEM

INTRODUCTION

The Result Card Evaluation System is a software used to register oneself for a

course in our SSA Computer Institute.

Note :

• Allow the user to input the roll number,name and marks of various subjects

• Allow the user to perform various functions on an existing file

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.
PROPOSED SYSTEM

Today one cannot afford to rely on the fallible human beings of be really

wants to stand against today’s merciless competition where not to wise saying “to

err is human” no longer valid, it’s outdated to rationalize your mistake. So, to keep

pace with time, to bring about the best result without malfunctioning and greater

efficiency so to replace the unending heaps of flies with a much sophisticated hard

disk of the computer.

One has to use the data management software. Software has been an ascent

in atomization various organizations. Many software products working are now in

markets, which have helped in making the organizations work easier and efficiently.

Data management initially had to maintain a lot of ledgers and a lot of paper work

has to be done but now software product on this organization has made their work

faster and easier. Now only this software has to be loaded on the computer and work

can be done.

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.


SOURCE CODES

Create a Python project of a Result Card Evaluation System to allow the user
to input the data

Note:

• Allow the user to input the roll number,name and marks of various subjects

• Allow the user to perform various functions on an existing file

SOLUTIONS:

FUNCTIONS FILE:

import csv

def writenew():

f1=open("book.csv","w")

pickle=csv.writer(f1)

pickle.writerow(["NAME","ROLL

N0","ENGLISH","MATHS","PHYSICS","CHEMISTRY","5TH

SUBJECT"])

s=int(input("ENTER MAXIMUM MARKS:"))

while True:

x=input("ENTER THE NAME:-")

print()

y=input("enter the roll number:-".upper())


c=int(input("enter the marks of

english :-".upper()))

q=int(input("enter the marks of

maths :-".upper()))

p=int(input("enter the marks of

physics :-".upper()))

a=int(input("enter the marks of

chemistry :-".upper()))

z=int(input("enter the marks of 5th

subject :-".upper()))

if c<s+1 and c>-1 and q<s+1 and q>-1 and

p<s+1 and p>-1 and a<s+1 and a>-1 and z<s+1 and z>-1:

c,q,p,a,z=c,q,p,a,z

else :

print("MARKS ARE INVALID")

break

pickle.writerow([x,y,c,q,p,a,z])

print("MARKS FOR THIS ROLL NUMBER IS ADDED IN

THE NEW FILE")

print("enter exit to break:-".upper())

print()

ch=input("enter the choice:-".upper())


if ch=="exit":

break

else:

continue

f1.close()

def add():

s=int(input("ENTER MAXIMUM MARKS:"))

f1=open("book.csv","a")

pickle=csv.writer(f1)

while True:

x=input("enter the name to be added in

previous list:-".upper())

print()

y=input("enter the roll number to be added in

the previous list:-".upper())

print()

c=int(input("enter the marks of

english :-".upper()))

q=int(input("enter the marks of

maths :-".upper()))
p=int(input("enter the marks of

physics :-".upper()))

a=int(input("enter the marks of

chemistry :-".upper()))

z=int(input("enter the marks of 5th

subject :-".upper()))

if c<s+1 and c>-1 and q<s+1 and q>-1 and

p<s+1 and p>-1 and a<s+1 and a>-1 and z<s+1 and z>-1:

c,q,p,a,z=c,q,p,a,z

else :

print("MARKS ARE INVALID")

break

pickle.writerow([x,y,c,q,p,a,z])

print("MARKS FOR THIS ROLL NUMBER IS ADDED IN

EXISTING FILE")

print("enter exit to break".upper())

print()

ch=input("enter the choice:-".upper())

print()

if ch=="exit":

break
else:

continue

f1.close()

def search():

l=[]

f1=open("book.csv","r",newline="\n")

f=csv.reader(f1)

for i in f:

l.append(i)

z=input("enter the roll number to be

searched".upper())

for i in l:

if i[1]==z:

print(i)

def delete():

l=[]

f1=open("book.csv","r",newline="\n")

f=csv.reader(f1)

for i in f:

l.append(i)

z=input("enter the roll number to be

deleted".upper())
for i in l:

if i[1]==z:

l.remove(i)

print("THE DATA FOR THIS ROLL NUMBER IS DELETED")

f1.close()

f1=open("book.csv","w")

pickle=csv.writer(f1)

for i in l:

pickle.writerow(i)

def edit():

l=[]

f1=open("book.csv","r",newline="\n")

f=csv.reader(f1)

for i in f:

l.append(i)

o=input("enter the roll number to be

edited:-".upper())

print()

x=input("enter the edited roll number:-

".upper())

print()

y=input("enter the edited name:- ".upper())


c=int(input("enter the editedmarks of

english :-".upper()))

q=int(input("enter the edited marks of

maths :-".upper()))

p=int(input("enter the editedmarks of

physics :-".upper()))

a=int(input("enter the editedmarks of

chemistry :-".upper()))

z=int(input("enter the edited marks of 5th

subject :-".upper()))

print()

for i in l:

if i[1]==o:

i[0]=y

i[1]=x

i[2]=c

i[3]=q

i[4]=p

i[5]=a

i[6]=z

f1.close()
f1=open("book.csv","w")

x=csv.writer(f1)

for i in l:

x.writerow(i)

f1.close()

print("THE DATA FOR THIS ROLL NUMBER IS EDITED")

def p():

l=[]

f1=open("book.csv","r",newline="\n")

y=csv.reader(f1)

for i in y:

l.append(i)

z=input("enter the roll number of the student

whose percentage is to be known")

s=int(input("ENTER MAXIMUM MARKS:"))

for i in l:

if i[1]==z:

e=(((int(i[2])+int(i[3])+int(i[4])

+int(i[5])+int(i[6]))/(s*5)))*100

if e>90:

print(i)
print("the percentage and grade

is",e," and ", 'A1','resperctively')

if e>80 and e<90:

print(i)

print("the percentage and grade

is",e," and " ,'A2','resperctively')

if e>70 and e<80:

print(i)

print("the percentage and grade

is",e," and " ,'B1','resperctively')

if e>60 and e<70:

print(i)

print("the percentage and grade

is",e," and " ,'B2','resperctively')

if e>50 and e<60:

print(i)

print("the percentage and grade

is",e," and " ,'C1','resperctively')

if e>40 and e<50:

print(i)

print("the percentage and grade

is",e," and " ,'C2','resperctively')


if e>33 and e<40:

print(i)

print("the percentage and grade

is",e," and " ,'D1','resperctively')

if e<33:

print(i)

print("the percentage and grade

is",e," and " ,'FAIL','resperctively')

MENU-DRIVEN FILE:

from cspractical1 import

writenew,add,search,delete,edit,p

s=int(input("enter the maximum marks".upper()))

while True:

print("exit"," to break".upper())

print()

ch1=(input("enter the choice:- (any key for

entering choice of function and type exit for

exiting".upper()))

print()

if ch1=="exit":
break

else:

print("1.writenew".upper())

print()

print("2.add".upper())

print()

print("3.search".upper())

print()

print("4.delete".upper())

print()

print("5.edit".upper())

print()

print("6.percentage and grade".upper())

ch=int(input("enter the choice2".upper()))

if ch==1:

writenew()

if ch==2:

add()

if ch==3:

search()

if ch==4:

delete()
if ch==5:

edit()

if ch==6:

p()
OUTPUT

• FUNCTIONS LIST:

• TO CREATE NEW FILE AND ADD DATA INTO IT:


 TO ADD DATA IN EXISTING FILE:

 TO SEARCH A DATA IN THE FILE:


 TO DELETE A DATA IN THE FILE:

 TO EDIT A DATA IN THE FILE


 TO FIND PERCENTAGE AND GRADE OF A DATA IN THE FILE
HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIA K8M800+8237R PLUS

CHIPSET FOR AMD ATHALON

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. MONITOR 14.1 or 15 -17 inch

VII. Key board and mouse

VIII.Printer : (if print is required – [Hard copy]

SOFTWARE REQUIREMENTS:

• Windows OS
• Python

BIBLIOGRAPHY
 Computer science With Python - Class XI By : Sumita Arora

***

You might also like