ARTIFICIAL CODEWALA
Menu
HOME
SITEMAP
CONTACT US
PRIVACY POLICY
BLOOD MANAGEMENT SYSTEM PROJECT
ARTIFICIALCODEWALA
April 09, 2021
import pandas as pd
import numpy as np
print("WELCOME TO BLOOD MANAGEMEN SYSTEM")
print("AB VIDYA BLOOD CAMP")
term_and_con="Dear user using this software you have to allow the terms and condition."
print(term_and_con)
term_and_condition="TERMS AND CONDITION"
print(term_and_condition)
print("1. To usethis software you must be fullfill our requirements")
print(" a. User cannot modify the source code even the source code")
print(" b. user cannot copy this source code for any purpose")
print("2. Only admin can modify the source code")
print("3. copying may be done when admin allows")
print("Are you accepting TERMS AND CONDITIONS")
print("press 1 for Agree")
print("press 2 for Not agree")
choice=int(input("enter your choice"))
if choice==2:
print("Thanks for giving vauable Time")
elif choice==1:
af1=0
while af1!=7:
print("WELCOME")
print(" 1.TO ADD DONOR_ID")
print(" 2.TO DELETE DONOR_ID")
print(" 3.TO MODIFY DONOR_ID")
print("4. TO SEE ALL DONOR_ID")
print("5. TO SEARCH DONOR_ID")
print("6. MATCHING BLOOD GROUP")
af1=int(input("enter your choice"))
ad1=pd.read_csv("/storage/emulated/0/PYTHON/donorid.docx")
if af1==1:
q1=input("NEW DONOR_ID-")
q2=input("CONFORM DONOR_ID-")
if q1==q2:
print("MACHED")
else:
print("user id can not mached")
q3=input("ENTER DONOR NAME-")
q4=input(" ENTER ADDRESS-")
q5=input("ENTER MOB NO-")
q6=input("ENTER BLOOD GROUP-")
ad1.loc[len(ad1.index)]=[len(ad1.index),q2,q3,q4,q5,q6]
a3=ad1.drop("Unnamed: 0",axis=1,inplace=True)
print(ad1)
ad1.to_csv("/storage/emulated/0/PYTHON/donorid.docx")
elif af1==2:
ad1.drop("Unnamed: 0",axis=1,inplace=True)
b = int(input("enter your user id : "))
a = len(ad1)
for i in range(a):
ch=ad1.iat[i,0]
if ch== b:
ad1.drop([i],axis = 0,inplace=True)
ad1.to_csv("/storage/emulated/0/PYTHON/donorid.docx")
print(ad1)
break
elif af1==3:
ad1.drop("Unnamed: 0",axis=1,inplace=True)
b=int(input("enter your donor id : "))
print("1 - TO CHANGE DONOR_ID \n2 - TO CHANGE DONOR NAME \n3 - TO CHANGE ADDRESS \n4- TO CHANGE MOB NO \n5- TO CHANGE BLOOD GROUP")
c=int(input("Enter your choice : "))
a=len(ad1)
for i in range(a):
ch=ad1.iat[i,0]
if ch==b:
e=input( "your new value : ")
ad1.iat[i,c-1]=e
print(ad1.iloc[i:i+1,:])
ad1.to_csv("/storage/emulated/0/WhatsApp Business/Media/python/donorid.docx")
elif af1==4:
ad1.drop("Unnamed: 0",axis=1,inplace=True)
print(ad1)
print("press any no for exist")
a1=int(input("enter your choice"))
elif af1==5:
ad1.drop("Unnamed: 0",axis=1,inplace=True)
b=int(input("enter your user id : "))
a=len(ad1)
for i in range(a):
ch=ad1.iat[i,0]
if ch==b :
print(ad1.iloc[i:i+1,:])
elif af1==6:
ad1.drop("Unnamed: 0",axis=1,inplace=True)
d=input("ENTER YOUR BLOOD GROUP : ")
a=len(ad1)
for i in range(a):
ch=ad1.iat[i,4]
if ch==d:
print(ad1.iloc[i:i+1])
ad1.to_csv("/storage/emulated/0/PYTHON/donorid.docx")
0 Comments
Popular Posts
Matrix Multiplication in C
August 14, 2022
Email Newsletter
September 20, 2024
Square Root
August 24, 2022
SERIES CONCEPT OF ATTRIBUTES
April 26, 2021
CONVERT FLASH TO USB USING CMD
August 14, 2022
Categories
C Programming
11
C++
1
DSA
1
HTML
1
Java oops
1
MACHINE LEARNING
1
MYSQL
5
NATURAL LANGUAGE PROCESSING
1
Pen Drive
2
PYTHON
17
SHARING APP
1
UI/UX
3
Total Pageviews
0 Comments