-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
33 lines (30 loc) · 849 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "HealthProfile.h"
#include <iostream>
#include <string>
using namespace std;
int main() {
string lastName, firstName, gender, month;
int day, year, height, weight;
cout << "Enter last name" << endl;
cin >> lastName;
cout << "Enter first name " << endl;
cin >> firstName;
cout << "Enter gender" << endl;
cin >> gender;
cout << "Month of birth" << endl;
cin >> month;
cout << "Day pf birth" << endl;
cin >> day;
cout << "Year of birth" << endl;
cin >> year;
cout << "Enter height" << endl;
cin >> height;
cout << "Enter weight" << endl;
cin >> weight;
HealthProfile myHealthProfile(firstName, lastName, gender, day, month, year,
height, weight);
myHealthProfile.displayTargetHeartRate();
myHealthProfile.displayBMI();
myHealthProfile.displayDate();
return 0;
}