I am supposed to write a program that maintains health records such as body weight, age, and so on. I have already have the figures in and was just wondering how would I display them with printf & scanf. For example.
This is what I have so far.
int computeAge(hp record);
/* Purpose: This function computes the patients maximum heart rate Inputs: An integer that represents the patients age in years Outputs: An integer that represents the patients maximum heart rate*/
I hope to get some advice on how I would complete this code.
#include <stdio.h>struct DOB
typedef DOB dob;
struct healthprofile hp;
char * lName;
char * fName;
typedef struct healthProfile hp;
void getprofileData(hp record);
int computerAge(hp record);
int computerMaxHR(int age);
int computerTargetHR(int mhr);
double computeBMI(hp record);
void displayProfileData(hp record);
void displayProfileStats(int age, int mhr, int thr, double b);
void getProfileData(hp record)
int computeAge(hp record)