C++ program to determine membership level based on cost
- 1. PROGRAMMING USING C++
ICT 120
APREKU ANTHONY K.
ID: 03140237
#include <iostream>
using namespace std;
1.
2. int main()
3. {
4. int cost;
5.
6. cout << "calculate the costof membershipn";
7.
8. cin>> cost;
9.
10. if (cost>= 30.00 && cost<= 39.00 )
11.
12. cout<< "BronzeMembershipn";
13.
14. else if ( cost >= 40.00 && cost<= 49)
15.
16. cout<<"Silver Membershipn";
17.
18. else if ( cost >= 50.00 && cost<= 59.00)
19.
20. cout<< "Gold Membershipn";
21.
22. else if (cost <= 0 || cost>= 50)
23.
24. cout<<" Membership can not be foundn";
25.
26. return 0;
27.}