Economics Project
Economics Project
PROJECT
SUBMITTED FOR
AISSCE
PRACTICAL EXAMINATION 2024-
2025
Developed at
DELHI PUBLIC SCHOOL (JOKA), SOUTH KOLKATA
CERTIFICATE
SUPERVISED BY
DEDICATION
DEDICATION
Dedicated
to
The brave hero’s of my country who sacrificed their lives for
freedom,
security and integrity of mother India, upkeep the honor of our
tricolor.
Their family members who suffered for our future.
My dear parents and my respected teachers
INDEX
INDEX
● Acknowledgement
● Requirement Analysis
● Feasibility Study
● Coding
● Output Screen
● System Specifications
● Bibliography
ACKNOWLEDGEMENT
ACKNOWLEDGEMENT
_________________
REQUIREMENT ANALYSIS
Proposed System
All of the four activities of systems have been automated and efforts
have been made to minimize the manual working
● No manual work
There is no manual work involved. All processes are done through
computer
● Record of patients
There is record of all students who registered
● User-friendly software
The software is menu-driven and is very easy to use.
● Flexibility
The system is more flexible than the manual system being used presently
● Beneficial
The system is easy to use and reduces the user’s workload a lot. It
provides timely and accurate information and there is automatic generation
of reports
FEASIBILITY STUDY
FEASIBILITY STUDY:
1. Economical feasibility
2. Technical feasibility
3. Operational feasibility
Economical Feasibility:
be developed.
Hardware configuration:
a) Processor : i3
b) Memory : 2 GB RAM
c) HD capacity : 1 TB
Software configuration:
Operational feasibility:-
As in the case of the present system the entire work is being
done manually. So the data being scattered, information retrieval
becomes difficult and maintaining the database is also very
tedious. In case of the proposed system, the entire work will be
done automatically. So the above details regarding the feasibility
study show that the design of the proposed system is very
effective.
CODING
import os
import csv def
addPatient():
print("Add a new Patient Record")
print("=====================") f=open('patient.csv','a',newline='\r\
n')
s=csv.writer(f)
patientid=int(input('Enter patient id= '))
patientname=input('Enter patient name= ')
diseasename=input('Enter disease name= ')
fee=float(input('Enter fee= '))
doctorname=input('Enter name of doctor= ')
rec=[patientid,patientname,diseasename,fee,doctorname]
s.writerow(rec)
f.close()
print("Patient Record Saved")
input("Press any key to continue..: ")
def modifyPatient():
print("Modify a Patient Record")
print("====================")
f=open('patient.csv','r',newline='\r\n')
f1=open('temp.csv','w',newline='\r\n') f1=open('temp.csv','a',newline='\
r\n')
r=input('Enter patientid whose record you want to modify= ')
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print("-------------------------------")
print("Patient id=",rec[0])
print("Patient Name=",rec[1])
print("Disease Name=",rec[2])
print("Fee=",rec[3])
print("Doctor Name=",rec[4])
print("-------------------------------")
def deletePatient():
f=open('patient.csv','r',newline='\r\n')
f1=open('temp.csv','w',newline='\r\n')
f1=open('temp.csv','a',newline='\r\n')
r=input('Enter patientid whose record you want to delete: ')
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print("-------------------------------")
print("Patient id=",rec[0])
print("Patient Name=",rec[1])
print("Disease Name=",rec[2])
print("Fee=",rec[3])
print("Doctor Name=",rec[4])
print("-------------------------------")
choice=input("Do you want to delete this Patient Record(y/n)")
if choice=='y' or choice=='Y':
pass
print("Patient Record Deleted....")
else:
s1.writerow(rec)
else:
s1.writerow(rec)
f.close()
f1.close()
os.remove("patient.csv")
os.rename("temp.csv","patient.csv")
def searchPatient():
print("Search a Patient Record")
print("=====================")
f=open('patient.csv','r',newline='\r\n') #Remove new line character from
output r=input('Enter patient record you want to
search: ')
s=csv.reader(f)
for rec in s:
if rec[0]==r:
print("-------------------------------")
print("Patient id=",rec[0])
print("Patient Name=",rec[1])
print("Disease Name=",rec[2])
print("Fee=",rec[3])
print("Doctor Name=",rec[4])
print("-------------------------------")
f.close()
input("Press any key to continue..: ")
def listallPatient():
print("List of All Patients")
print("========================")
f=open('patient.csv','r',newline='\r\n') #Remove new line character from
output
s=csv.reader(f)
i=1
for rec in s:
print(rec[0],end="\t\t")
print(rec[1],end="\t\t")
print(rec[2],end="\t\t") print(rec[3],end="\t\
t")
print(rec[4])
i+=1
f.close()
print("-------------------------------")
input("Press any key to continue..: ")
def mainmenu():
choice=0
while choice!=6:
print("\n")
print("|--------------------------|")
print("| Hospital Management System |")
print("| -------------------------|")
print('\n')
print("########################")
print(" Main Menu")
print("########################")
print("1. Add a new Patient Record")
print("2. Modify Existing Patient Record")
print("3. Delete Existing Patient Record")
print("4. Search a Patient")
print("5. List all Patients")
print("6.Exit")
print("-------------------------------")
choice=int(input('Enter your choice: '))
if choice==1:
addPatient()
elif choice==2:
modifyPatient()
elif choice==3:
deletePatient()
elif choice==4:
searchPatient()
elif choice==5:
listallPatient()
elif choice==6:
print("Software Terminated.......")
break
mainmenu()
OUTPUT SCREENS
Main menu:
Exit:
SYSTEM SPECIFICATIONS
SYSTEM SPECIFICATIONS
Hardware specifications:
Software specifications:
https://geeksforgeeks.org/working-csv-files-python/
https://www.slideshare.net/csv-pythonproject/
https://unacademy.com/class/ip-project-file-work-on-python-
an d-csv-files/LWT06CXQ
https://www.learnpython4cbse.com/projects-2/projects—computer
-sc-xii/