Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main () {
- char trans1;
- float aTransfer, tFee, sFee, rb, amt, tad;
- string cn, pin, rpin, trans2;
- system("cls");
- cout << "\nOnline Money Transfer\n";
- cout << "------------------------------------\n";
- cout << "[C]redit [S]aving [O]ther\n";
- cout << "Select Transaction: ";
- cin >> trans1;
- cout << "------------------------------------\n";
- if (trans1 == 'c' || trans1 == 'C') {
- cout << "Amount to Transfer: *** ";
- cin >> aTransfer;
- tFee = aTransfer * 0.10;
- sFee = aTransfer * 0.10;
- cout << "Transfer Fee: ********* " << fixed << setprecision(2) << tFee << "\n";
- cout << "Service Fee: ********** " << fixed << setprecision(2) << sFee;
- cout << "\n------------------------------------\n";
- cout << "Enter Card Number: ";
- cin >> cn;
- cout << "Enter PIN: ";
- cin >> pin;
- if (cn == "000-000-123" && pin == "123456") {
- rb = aTransfer * 0.05;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "--------------------------------------- \n";
- cout << "Transaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2) << amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2) << tad << endl;
- } else if (cn != "000-000-123" && pin != "123456") {
- cout << "--------------------------------------- \n";
- cout << "No Account Found..." << endl;
- cout << "Money Transfer Cancelled!" << endl;
- } else if (cn == "000-000-123" && pin != "123456") {
- cout << "Wrong PIN ..." << endl;
- cout << "Re-Enter PIN: ";
- cin >> rpin;
- if ( rpin == "123456" ) {
- rb = aTransfer * 0.05;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "---------------------------------------";
- cout << "\nTransaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2) << amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2) << tad << endl;
- } else {
- cout << "------------------------------------ \n";
- cout << "Invalid PIN..."<< endl;
- cout << "Money Transfer Cancelled!"<< endl;
- }}
- } else if(trans1 == 's' || trans1 == 'S') {
- cout << "Amount to Transfer: *** ";
- cin >> aTransfer;
- tFee = (aTransfer/1000)*20;
- sFee = 0;
- cout << "Transfer Fee: ********* " << fixed << setprecision(2) << tFee << endl;
- cout << "Service Fee: ********** " << fixed << setprecision(2) << sFee;
- cout << "\n------------------------------------\n";
- cout << "Enter Card Number: ";
- cin >> cn;
- cout << "Enter PIN: ";
- cin >> pin;
- if (cn == "000-000-123" && pin == "123456") {
- rb = 0;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "---------------------------------------";
- cout << "\nTransaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2) << amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2) << tad << endl;
- } else if (cn != "000-000-123" && pin != "123456") {
- cout << "------------------------------------\n";
- cout << "No Account Found..."<< endl;
- cout << "Money Transfer Cancelled!"<< endl;
- } else if (cn == "000-000-123" && pin != "123456") {
- cout << "Wrong PIN ..."<< endl;
- cout << "Re-Enter PIN: ";
- cin >> rpin;
- if ( rpin == "123456" ) {
- rb = 0;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "---------------------------------------";
- cout << "\nTransaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2) << amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2) << tad << endl;
- } else {
- cout << "------------------------------------ \n";
- cout << "Invalid PIN..."<< endl;
- cout << "Money Transfer Cancelled!"<<endl;
- }}
- } else if(trans1 == 'o' || trans1 == 'O') {
- cout << "[1]Paypal [2]Paymaya [3]GCash" << endl;
- cout << "Select Transaction: ";
- cin >> trans2;
- cout << "------------------------------------\n";
- if (trans2 == "1") {
- cout << "Amount to Transfer: *** ";
- cin >> aTransfer;
- tFee = 0;
- sFee = 50;
- cout << "Transfer Fee: ********* " << fixed << setprecision(2) << tFee << endl;
- cout << "Service Fee: ********** " << fixed << setprecision(2) << sFee << endl;
- cout << "\n------------------------------------\n";
- cout << "Enter Card Number: ";
- cin >> cn;
- cout << "Enter PIN: ";
- cin >> pin;
- if (cn == "000-000-123" && pin == "123456") {
- rb = 0;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "---------------------------------------";
- cout << "\nTransaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2) << amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2) << tad << endl;
- } else if (cn != "000-000-123" && pin != "123456") {
- cout << "------------------------------------\n";
- cout<<"No Account Found..."<<endl;
- cout<<"Money Transfer Cancelled!"<<endl;
- } else if (cn == "000-000-123") {
- cout << "Wrong PIN ..."<<endl;
- cout << "Re-Enter PIN: ";
- cin >> rpin;
- if( rpin == "123456" ) {
- rb = 0;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "---------------------------------------";
- cout << "\nTransaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2)<< amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2)<< tad << endl;
- } else {
- cout << "------------------------------------ \n";
- cout<<"Invalid PIN..."<<endl;
- cout<<"Money Transfer Cancelled!"<<endl;
- }}
- } else if (trans2 == "2" || trans2 == "3") {
- cout << "Amount to Transfer: *** ";
- cin >> aTransfer;
- tFee = 0;
- sFee = 15;
- cout << "Transfer Fee: ********* " << fixed << setprecision(2) << tFee << endl;
- cout << "Service Fee: ********** " << fixed << setprecision(2) << sFee << endl;
- cout << "\n------------------------------------\n";
- cout << "Enter Card Number: ";
- cin >> cn;
- cout << "Enter PIN: ";
- cin >> pin;
- if (cn == "000-000-123" && pin == "123456") {
- rb = aTransfer * 0.10;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "---------------------------------------";
- cout << "\nTransaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2) << amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2) << tad << endl;
- } else if (cn != "000-000-123" && pin != "123456") {
- cout << "------------------------------------\n";
- cout<<"No Account Found..."<<endl;
- cout<<"Money Transfer Cancelled!"<<endl;
- } else if (cn == "000-000-123" && pin != "123456") {
- cout << "Wrong PIN ..."<<endl;
- cout << "Re-Enter PIN: ";
- cin >> rpin;
- if( rpin == "123456" ) {
- rb = aTransfer * 0.10;
- amt = tFee + sFee + aTransfer;
- tad = amt - rb;
- cout << "---------------------------------------";
- cout << "\nTransaction Verified!\n";
- cout << "Amount: *************** " << fixed << setprecision(2) << amt << endl;
- cout << "Rebate: *************** " << "(" << rb << ")" << endl;
- cout << "Total Amount Deducted:* " << fixed << setprecision(2) << tad << endl;
- } else {
- cout << "------------------------------------ \n";
- cout<<"Invalid PIN..."<<endl;
- cout<<"Money Transfer Cancelled!"<<endl;
- }}}
- } else {
- cout<<"Invalid Selection"<<endl;
- cout<<"Money Transfer Cancelled!"<<endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment