created a health managemet system to keep record of your exercise and food you eat. program automatically created the file and ask user if they want to log or retrive the information from the file , you can add information like what they eat or what exercise they did and program keep the record of it with the date and time stamp when you added fo r them to retrive later. You may notice this file contains a scenario. The reason for that is just to develop your interest in the problems So, let me give a brief introduction of the scenario here. ;)
Suppose you are a fitness trainer and nutritionist. You have to deal with three clients. For each client, you have to design their exercise and diet plan. created a "Health Management System."
created a "Health Management System" to manage and save your exercises and food details in a separate files with the time you entered it record with it automatically for you to retrive it later program will generate files automatially
- Create a food log file for each client
- Create an exercise log file for each client.
- Ask the user whether they want to log or retrieve client data.
- Write a function that takes the user input of the client's name. After the client's name is entered, it will display a message as "What you want to log- Diet or Exercise".
- The purpose is to give time with every record of food or exercise added in the file.
- Write a function to retrieve exercise or food file records for any client.
['2021-09-30 18:25:02.883131'] : chest press 12*3
['2021-09-30 18:30:56.058321'] : push ups 15*3
['2021-09-30 18:31:50.363653'] : benchpress 8*3
python module datetime import datetime
Your laptop with 3.6.x (onwards) installed.
NOTE: Those with Linux and MacOSX would have Python installed by default, no action required.
Windows: Download the version for your laptop via https://www.python.org/downloads/
NOTES In your preferred editor, make sure indentation is set to "4 spaces".
- Clone or download repositiory: https://github.com/arevish/health-ManagmentSystem.git
- In source folder, run
python3 'healthmanagementsystem.py'
to start program, optionally, run with--help
argument to see other runtime options.