diff options
author | Matthew Strapp <msattr@gmail.com> | 2019-04-17 13:48:53 -0500 |
---|---|---|
committer | Matthew Strapp <msattr@gmail.com> | 2019-04-17 13:48:53 -0500 |
commit | 41ae05a835ace3f736117c768511589d28a6503e (patch) | |
tree | 21b4069826c21084b17681ad06aef0d395711b1c /ee1301/wk6 | |
parent | Formatting (diff) | |
download | homework-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 'ee1301/wk6')
-rw-r--r-- | ee1301/wk6/hw6_directory/strap012_HW6A.cpp | 3 |
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 |