Why it is not reading the checking interest and checking fee except for saving fee and interest fee???/

# include <iostream>

using namespace std;
int main()
{
int accountnumber, saving_minimum_balance, checking_minimum_balance, saving_fee, checking_fee, balance;
double checking_interest, saving_interest, special_checking_interest;
char accountType;
checking_interest=.03;saving_interest=.04;special_checking_interest=.05;saving_fee=10;checking_fee=25;
cout<<"please input your account number"<<endl;
cin>>accountnumber;
cout<<endl;
cout<<"Enter account type:"<<endl;
cout<<"S or s (Saving),"<<endl;
cout<<"C or c (checking),"<<endl;
cin>>accountType;
cout<<endl;
cout<<"Enter minimum balance:"<<endl;
cin>>"minimum balance";
cout<<endl;
cout<<"Enter balance:"<<endl;
cin>>balance;
cout<<endl;

if((accountType=='s'|| (accountType=='S'))
if(balance>=saving_minimum_balance)
balance=balance+(balance*saving_interest);
cout<<"Current balance:"<<balance<<endl;

else if (balance<saving_minimum_balance)
balance=(balance-saving_fee);
cout<<"Current balance:"<<balance<<endl;

if ((accountType=='c'|| (accountType=='C'))
if (balance>=5000)
balance=(balance*special_checking_interest);
cout<<"Current balance:"<<balance<<endl;

else if (balance<=5000)
balance=(balance*checking_interest);
cout<<"Current balance:"<<endl;

else if (checking_minimum_balance<=5000)
balance=(balance-checking_fee);
cout<<"Current balance:"<<endl;



return 0;
}
Topic archived. No new replies allowed.