-
Notifications
You must be signed in to change notification settings - Fork 0
/
Driver1.java
88 lines (61 loc) · 1.93 KB
/
Driver1.java
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package org.move.system;
public class Driver1 {
public static void main(String[] args) {
//Initialize Move
Move moveTest = new Move();
//Create an account
Account accountTest = new Account();
//Create user
User userTest = new User();
//Create day
Day dayOne = new Day();
//Create fitness
Fitness fitnessTest = new Fitness();
//Create Health
Health healthTest = new Health();
//Create Goal
Goal goalTest = new Goal();
//Create Progress
//Progress progressTest = new Progress();
//Set attributes
accountTest.setUsername("popcicle97");
accountTest.setPassword("dogsarecute53");
userTest.setName("Stitch");
userTest.setAge(22);
userTest.setLocation("Tucson, Az");
userTest.setWeight(120);
userTest.setHeight(62);
accountTest.newUser(userTest);
fitnessTest.setCalories(200);
fitnessTest.setDistance(3);
fitnessTest.setFlightofStairs(40);
fitnessTest.setPathName("Three Mile Run");
fitnessTest.setSteps(120);
dayOne.setFitness(fitnessTest);
userTest.setFitness(fitnessTest);
healthTest.setSleep(8);
healthTest.setBloodPressure(120);
healthTest.setHeartRate(60);
userTest.setHealth(healthTest);
goalTest.setGoalCalories(300);
goalTest.setGoalDistance(5);
goalTest.setGoalSteps(150);
userTest.setGoals(goalTest);
//Printing Information
System.out.println("Printing account information:");
accountTest.printUsername();
accountTest.printPassword();
System.out.println("\nPrinting user information:");
userTest.printUserInfo();
userTest.printFitness();
System.out.println("\nPrinting user health information:");
healthTest.printBloodPressure();
healthTest.printHeartRate();
healthTest.printSleep();
System.out.println("\nPrinting fitness information:");
fitnessTest.printPath();
System.out.println("\nPrinting goal information:");
goalTest.printGoal();
goalTest.printRemainingGoal(userTest);
}
}