ATM PROBLEM EERROR SOULTION

#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
class bank
{
double tax;
double bal;
int withdr;
public:
void deposit();
void withdraw();
};
void bank::deposit()
{
cout<<"\n enter the opening cash bal"<<endl;
cin>>bal;
if(bal > 2000)
{
cout<<“the opening balance should be less than 2000us$”<<endl;
}
}
void bank::withdraw()
{
cout<<"\n enter the amount to withdraw"<<endl;
cin>>withdr;
if(withdr > 2000)
{
cout<<“insufficient balance”<<endl;
}
if(withdr%5 == 0)
{
bal=bal - withdr;
bal=bal - 0.50;
cout<<“you have succesfully withdrawn”<<withdr<<"\n your current balance is"<<bal<<endl;
}
else
cout<<“The withdraw amount should be multiple of 5 try once again :)”<<endl;
}
void main()
{
clrscr();
bank ob;
int ch;
for(;:wink:
{
cout<<“enter your choice”<endl;
cout<<“1.DEPOSIT 2.WITHDRAW”<<endl;
cin>>ch;
switch(ch)
{
case 1:ob.deposit();
break;
case 2:ob.withdraw();
break;
default :exit(0);
getch();
}}
}

it would be better if you paste the code and then after highlighting the code press the button which says “101 010” this would format the code and will be readable, the one you have posted currently, is very hard to read and understand.

You need to print compulsarily till 2 decimal places. Then, remove those superfluous print statements like “enter the amount”. Its a machine checking if what you print is exact match of expected output or not.