#include <iostream.h>
int Acct = 0;
double BegBal;
double totchar;
double totcred;
double credlim;
double newcredit;
int main(void)
{
//cout<<"ddd";
while (Acct != 1)
{
cout<<"Enter account number (-1 to end) $$$$$ : ";
cin>>Acct;
if (Acct != -1)
{
cout<<"Enter beginning balance u dick: ";
cin>>BegBal;
cout<<"Enter total charges u $$$$$$$: ";
cin>>totchar;
cout<<"Enter total credits u pussy: ";
cin>>totcred;
cout<<"enter credit limit: ";
cin>>credlim;
newcredit = ((BegBal + totchar) - (totcred));
if (newcredit > credlim)
{
cout<<"account: "<<Acct<<endl;
cout<<"credit limit: "<<credlim<<endl;
cout<<"balance: "<<newcredit<<endl;
cout<<"credit limit exceeded u dumbass."<<endl;
}
}
}
return 0;
}
we need to add a 30$ fee when the credit limit is exceeded and a 10% of the remaining balance that is left over



LinkBack URL
About LinkBacks


