diff options
| author | JacobAKnox <[email protected]> | 2021-10-13 18:53:02 -0700 |
|---|---|---|
| committer | JacobAKnox <[email protected]> | 2021-10-13 18:53:02 -0700 |
| commit | 5b5d20527caa9ec933b3b0d4d296e7156a5c138e (patch) | |
| tree | 6c3723cd032374c0c784949768ae749195b8d970 /5a/Knox7.1Exercises/Knox7.1Exercises.cpp | |
| parent | Add online IDE url (diff) | |
| download | archived-cst116-lab3-jacobaknox-5b5d20527caa9ec933b3b0d4d296e7156a5c138e.tar.xz archived-cst116-lab3-jacobaknox-5b5d20527caa9ec933b3b0d4d296e7156a5c138e.zip | |
5a complete
Diffstat (limited to '5a/Knox7.1Exercises/Knox7.1Exercises.cpp')
| -rw-r--r-- | 5a/Knox7.1Exercises/Knox7.1Exercises.cpp | 33 |
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 |