aboutsummaryrefslogtreecommitdiff
path: root/5a/Knox7.1Exercises/Knox7.1Exercises.cpp
blob: e158a514039b1747da3b2192aac38a550335e8b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
}