Course:CPSC312-2019-TrainingProgram

From UBC Wiki
Wiki.png
Section:
Instructor:
Email:
Office:
Office Hours:
Class Schedule:
Classroom:
Important Course Pages
Syllabus
Lecture Notes
Assignments
Course Discussion
[[Category:]]


What is the problem?

We will create a special workout routine/ training program using Prolog, given a user's fitness goal and their years of experience in the gym.

What is the something extra?

If time permits, we will implement a program to calculate a user's Basal Metabolic Rate (BMR) given their Gender, Weight, Height, and Age. There will also be a program to calculate a user's required caloric intake, given their BMR and activity level.

What did we learn from doing this?

Since most of the training exercises belong in different multiple training days, it was rather difficult to create just "one" training exercise and have them append onto the list depending on which training day it is. The easiest way to do this was to hard-code every training day with its exercise, hence there are a lot of similar training exercise, with only one argument differentiating from another.

Links to code etc

https://github.com/winstonl4m/Training-Program