summaryrefslogtreecommitdiff
path: root/hw2/snowfall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hw2/snowfall.cpp')
-rw-r--r--hw2/snowfall.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/hw2/snowfall.cpp b/hw2/snowfall.cpp
new file mode 100644
index 0000000..2d54a90
--- /dev/null
+++ b/hw2/snowfall.cpp
@@ -0,0 +1,20 @@
+// CSCI 1300 Fall 2022
+// Author: Navan Chauhan
+// Recitation: 307 – TA name
+// Homework 2 - Problem 4
+
+#include<iostream>
+
+using namespace std;
+
+int main() {
+ int num_days, breck, vail, copper;
+
+ cout << "How many days in the future would you like a prediction for?\n";
+ cin >> num_days;
+ breck = 25+(10*num_days)-(5*num_days);
+ vail = 28+(14*num_days)-(2*num_days);
+ copper = 40+(5*num_days)-(3*num_days);
+ cout << "Breckenridge will have " << breck << " inches, Vail will have " << vail << " inches, and Copper Mountain will have " << copper << " inches.";
+ return 0;
+}