79819633

Date: 2025-11-14 03:50:43
Score: 0.5
Natty:
Report link
#include <iostream>
#include <limits>
#include <ctime>
#include <iomanip>
#include <math.h>
#include <locale.h>


void showBalance(double balance){
        std::cout << "Your balance: " << std::setprecision(2) << std::fixed << balance << '\n';
}
double deposit(){
    double depositAmount = 0;

    std::cout << "Enter Deposit Amount: ";
    std::cin >> depositAmount;

    if (!depositAmount > 0)
    {
        std::cout << "Enter A Valid Amount.\n";
    }

    return depositAmount;
}
double withdraw(double balance){
    double withdrawAmount = 0;

    std::cout << "Enter The Amount You Would Like To Withdraw: ";
    std::cin >> withdrawAmount;

    if (!withdrawAmount > 0)
    {
        std::cout << "Enter A Valid Amount.\n";
    }
    
    return withdrawAmount;
}

int main(){
setlocale(LC_ALL, "");     when you try to use comma's instead of a . for decimals it throws same error no clue how to fix this been looking around
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31875484