This commit is contained in:
Tyler Beckman 2024-09-22 20:25:00 -06:00
parent 68e45dd3b5
commit bf1c77bd06
Signed by: Ty
GPG key ID: 2813440C772555A4
3 changed files with 114 additions and 112 deletions

View file

@ -120,7 +120,8 @@ void withdraw_money(int* pDollars, int* pCents) {
std::cin >> centsToWithdraw; std::cin >> centsToWithdraw;
if (centsToWithdraw < 0 || dollarsToWithdraw < 0) { if (centsToWithdraw < 0 || dollarsToWithdraw < 0) {
std::cout << "Withdrawals must be positive amounts, please try again with " std::cout
<< "Withdrawals must be positive amounts, please try again with "
"proper values" "proper values"
<< std::endl << std::endl
<< std::endl; << std::endl;
@ -136,7 +137,8 @@ void withdraw_money(int* pDollars, int* pCents) {
*pDollars = 0; *pDollars = 0;
if (totalCentWithdrawal > *pCents) { if (totalCentWithdrawal > *pCents) {
std::cout << "You do not have enough money for this withdrawal" << std::endl std::cout << "You do not have enough money for this withdrawal"
<< std::endl
<< std::endl; << std::endl;
return; return;
} }