MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / Deposit

Function Deposit

Project_Bank_Management_System/Header.h:78–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void Deposit()
79{
80 double money;
81 cout << "\n Please enter amount of money - ";
82 cin >> money;
83 if (money == 0)
84 {
85 cout << "\n You entered 0 value so now you are redirected to the menu" << endl;
86 Sleep(2000);
87 }
88 else if (money > 0)
89 {
90 ::balance = ::balance + money;
91
92 cout << "\n Please wait for a while, while we are transfering money to your account" << endl;
93 Sleep(2000);
94 cout << "\n ";
95 cout << money << "$ amount of money was added to your balance" << endl << endl;
96 }
97 else
98 {
99 cout << "\n Error!" << endl;
100 cout << "\n Please enter valid amount of money!" << endl << endl;
101 }
102 cout << "\n ";
103 system("pause");
104}
105
106void Borrow()
107{

Callers 2

MenuFunction · 0.85
DepositMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected