A new work for One Hour.
#define AGE 33
#define MAXIMUM_AEROBIC_FUNCTION 180-AGE
int time;
double latitude = 52°28'18.82"N;
double longitude = 0°35'20.85"W;
int heartrate;
int main()
{
for (time = 17:08:13; time < 18:08:13; time++) { get latitude get longitude get heartrate if (heartrate > MAXIMUM_AEROBIC_FUNCTION)
{
slow down;
}
else if (heartrate < (MAXIMUM_AEROBIC_FUNCTION – 10))
{
speed up;
}
else
{
maintain running speed;
}
}
return 0;
}