aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk6
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-04-17 13:48:53 -0500
committerMatthew Strapp <msattr@gmail.com>2019-04-17 13:48:53 -0500
commit41ae05a835ace3f736117c768511589d28a6503e (patch)
tree21b4069826c21084b17681ad06aef0d395711b1c /ee1301/wk6
parentFormatting (diff)
downloadhomework-41ae05a835ace3f736117c768511589d28a6503e.tar
homework-41ae05a835ace3f736117c768511589d28a6503e.tar.gz
homework-41ae05a835ace3f736117c768511589d28a6503e.tar.bz2
homework-41ae05a835ace3f736117c768511589d28a6503e.tar.lz
homework-41ae05a835ace3f736117c768511589d28a6503e.tar.xz
homework-41ae05a835ace3f736117c768511589d28a6503e.tar.zst
homework-41ae05a835ace3f736117c768511589d28a6503e.zip
finish up
Diffstat (limited to '')
-rw-r--r--ee1301/wk6/hw6_directory/strap012_HW6A.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ee1301/wk6/hw6_directory/strap012_HW6A.cpp b/ee1301/wk6/hw6_directory/strap012_HW6A.cpp
index c255ade..de36cf6 100644
--- a/ee1301/wk6/hw6_directory/strap012_HW6A.cpp
+++ b/ee1301/wk6/hw6_directory/strap012_HW6A.cpp
@@ -60,7 +60,7 @@ int main() {
roll[i-1] = die[i-1].roll(pairs[i], pairs[i+1]);
curRoll += roll[i-1];
}
-
+
if (curRoll > max) {
max = curRoll;
}
@@ -68,6 +68,7 @@ int main() {
min = curRoll;
}
sum+=curRoll;
+ sample=curRoll;
}
avg = sum / numRolls;
cout << "Sample roll: " << sample << endl