Based on user input and considering a range of specific fact, my app will give personalised details for optimal sleep, exercise and nutrition details.
I was fascinated by the importance of sleep, exercise and nutrition has particularly for astronauts who have limited space and resources in space. I have developed a computer program that provides personalised optimal levels of sleep, exercise and nutrition based on specific user input.
It gave me an overview as to the types of data that can be used but also during testing user inputs.
exercise = “ “
nutrition = “ “
sleep = 0
exercise = input (“Do you exercise?”)
if “Yes” in exercise:
(“You should exercise for 2 hours a day”)
else:
(“You ought to exercise for 2 hour per day”)
nutrition = input (“What do you currently eat in Space?”)
if “water”in exercise:
(“You should drink 2 litres a day”)
else:
(“You ought to drink 2 litres per day”)
sleep= input (int(“How many hours do you sleep?”))
if “8” in exercise:
(“You should sleep 8 hours a day”)
else:
(“You ought to sleep 8 hours per day”)