HEALTH MANAGEMENT SYSTEM
print(" WELCOME TO HEALTH MANAGEMENT SYSTEM ")
print("Enter (1) for Naveen\n",
"Enter (2) for Rohan\n",
"Enter (3) for Jay\n")
name=int(input("Enter name"))
print("Enter (1) for Diet plan\n",
"Enter (2) for Excercise plan\n")
plan=int(input("Enter plan"))
def naveendiet():
f=open("naveen.txt")
print(f.read())
f.close()
def rohandiet():
f2=open("rohan.txt")
print(f2.read())
f2.close()
def jaydiet():
f3=open("jay.txt")
print(f3.read())
f3.close()
def naveenex():
f4=open("naveenex.txt")
print(f4.read())
f4.close()
def rohanex():
f5=open("rohanex.txt")
print(f5.read())
f5.close()
def jayex():
f6=open("jayex.txt")
print(f6.read())
f6.close()
if name==1:
if plan==1:
print(naveendiet())
else:
print(naveenex())
elif name==2:
if plan==1:
print(rohandiet())
else:
print(rohanex())
else:
if plan==1:
print(jaydiet())
else:
print(jayex())
print("THANKS FOR USING HEALTH MANAGEMENT SYSTEM")
print("Do you want to edit or enter any detail to plan\n",
"Enter 1 for Yes\n",
"Enter 2 for No " )
opp=int(input("==>"))
print("Enter (1) for Naveen\n",
"Enter (2) for Rohan\n",
"Enter (3) for Jay\n")
ename=int(input("enter name to edit ==> "))
print("which plan to edit\n","Enter 1 for diet\n","Enter 2 for excercise\n")
eplan=int(input("==>"))
def navwritedite():
f7=open("naveen.txt","a")
f7.write(navstr)
f7.close()
def rohwritedite():
f8 = open("rohan.txt", "a")
f8.write(rohstr)
f8.close()
def jaywritedite():
f9 = open("jay.txt", "a")
f9.write(jaystr)
f9.close()
if opp==1:
if ename==1:
if eplan==1:
print("enter text to add\n")
navstr=input()
navwritedite()
else:
print("enter text to add\n")
navstr=input()
navwritedite()
elif ename==2:
if eplan==1:
print("enter text to add\n")
rohstr=input()
rohwritedite()
else:
print("enter text to add\n")
rohstr=input()
rohwritedite()
elif ename==3:
if eplan==1:
print("enter text to add\n")
jaystr=input()
jaywritedite()
else:
print("enter text to add\n")
jaystr=input()
jaywritedite()
elif opp==0:
print("THANKS FOR USING IT!! HAVE A NICE DAY")
#It has total 6 file which it reads to display data.
#naveen.txt
DIET PLANS(Naveen)
1.Green tea(morning)
2.2eggs and juice(breakfast)
3.Any subji and 2 roti(lunch)
4.liet dinner. can be dal chawal
5. snnacks- A cup of tea with 2 biscuits
-
-
-
Be regular with exercise always.#rohan.txtDIET PLANS(Rohan)
1.Green tea(morning)
2.3 eggs and juice and toasts , you have to take protien rich diet (breakfast)
3.Any subji (avoid allo) and 3 roti, you can take salds (lunch)
4.Can take chicken and protien rich dinner.
5. snnacks- A cup of tea with 2 biscuits,can take protien shake.
-
-
-
Be regular with exercise always.aj maine rajma chawal kha liye the sryjay.txtDIET PLANS(jay)
1.any type of tea(morning)
2.2 eggs and juice and toasts , you have to take protien rich diet (breakfast)
3.Any subji (avoid allo) and 3 roti, you can take salds (lunch)
4.Can take chicken and protien rich dinner,also take dal chawal in dinner.
5. snnacks- A cup of tea with 2 biscuits,can take protien shake,
you can take any preserved foods as well.
-
-
-
Be regular with exercise always.naveenex.txtExercize to follow up:--
1.10 min skipping
2.10-15 pushups.(incerese day by day to 50)
3.5-10 bencpress
4.15-20 min walking after dinner and lunch
5.Be regular to the plan.rohanex.txtExercize to follow up:--
1.20 min skipping
2.10-15 pushups.(incerese day by day to 50)
3.15-20 bencpress
4.15-20 min walking after dinner and lunch
5.10 kg dubles for 15 mins
6.20mins running
7.10-15min swimming
8.Be regular to the plan.jayex.txtExercize to follow up:--(jay)
1.20 min skipping
2.10-15 pushups.(incerese day by day to 50)
3.15-20 bencpress
4.15-20 min walking after dinner and lunch
5.20 kg dubles for 25 mins
6.20mins running
7.10-15min swimming
8.Be regular to the plan.
Comments
Post a Comment