Exercise 5: Health Management System

 Exercise#5

The task is to create a "Health Management System." Suppose you are a fitness trainer and nutritionist. You have to deal with three clients, i.e., (Harry, Rohan, Hammad). For each client, you have to design their exercise and diet plan.

Instructions:

  • 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".
  • Use function
def getdate():
           import datetime
           return datetime.datetime.now()
  • The purpose of this function 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.

You are advised to participate in solving this problem. This task helps you to become a good problem solver and enables you to accept the challenge and acquire new skills.

Comments

Popular posts from this blog

Diamond Shape Problem In Multiple Inheritance

Static Methods In Python

Recursions: Recursive Vs Iterative Approach