aboutsummaryrefslogtreecommitdiff
path: root/5a/Knox7.1Exercises/Knox7.1Exercises.cpp
diff options
context:
space:
mode:
Diffstat (limited to '5a/Knox7.1Exercises/Knox7.1Exercises.cpp')
-rw-r--r--5a/Knox7.1Exercises/Knox7.1Exercises.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/5a/Knox7.1Exercises/Knox7.1Exercises.cpp b/5a/Knox7.1Exercises/Knox7.1Exercises.cpp
new file mode 100644
index 0000000..e158a51
--- /dev/null
+++ b/5a/Knox7.1Exercises/Knox7.1Exercises.cpp
@@ -0,0 +1,33 @@
+// Knox7.1Exercises.cpp : This file contains the 'main' function. Program execution begins and ends there.
+//
+
+#include <iostream>
+using namespace std;
+
+int main()
+{
+ int accounts;
+ double balance;
+
+ cout << "Please input your total account balance in dollars: ";
+ cin >> balance;
+
+ cout << "\nPlease input the number of accounts you have: ";
+ cin >> accounts;
+
+ if (balance >= 25000) {
+ cout << "\nYour membership type is Platinum.";
+ }
+ else if (balance >= 10000) {
+ if (accounts >= 2) {
+ cout << "\nYour membership type is Gold.";
+ }
+ else {
+ cout << "\nYour membership type is Silver.";
+ }
+ }
+ else {
+ cout << "\nYour membership type is Copper.";
+ }
+ return 0;
+} \ No newline at end of file