Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ude <iostream>
- #include <iomanip>
- #include <cmath>
- using namespace std;
- int main() {
- cout << setiosflags(ios::left);
- cout << resetiosflags(ios::adjustfield);
- double interest, month, deposit;
- cout << "Insert Money Deposited:" << endl;
- cin >> deposit;
- if(deposit >= 10000)
- {
- cout << "Match the correseponding duration the money has been in the bank with a number 1-6" << endl;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cout << "1. 1-11 Months\n2. 12-23 Months\n3. 24-35 Months\n4. 36-47 Months\n5. 48-59 Months\n6. 60-120 Months" << endl;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- if(month == 1)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 2)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 3)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 4)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 5)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 6)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- }
- else if(deposit <= 10001 && deposit >= 100000)
- {
- cout << "Match the correseponding duration the money has been in the bank with a number 1-6" << endl;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cout << "1. 1-11 Months\n2. 12-23 Months\n3. 24-35 Months\n4. 36-47 Months\n5. 48-59 Months\n6. 60-120 Months" << endl;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- if(month == 1)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 2)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 3)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 4)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 5)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 6)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- }
- else if(deposit <= 100001)
- {
- cout << "Match the correseponding duration the money has been in the bank with a number 1-6" << endl;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cout << "1. 1-11 Months\n2. 12-23 Months\n3. 24-35 Months\n4. 36-47 Months\n5. 48-59 Months\n6. 60-120 Months" << endl;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- if(month == 1)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 2)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 3)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 4)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 5)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- if(month == 6)
- {
- cout << "Insert the exact amount of months\n";
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- cin >> month;
- interest=(deposit*month)/100;
- cout << "Interest is:" << interest;
- cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement