# need help with 10% penalty for program

This is a discussion on need help with 10% penalty for program within the C++ Programming forums, part of the General Programming Boards category; #include <iostream.h> int Acct = 0; double BegBal; double totchar; double totcred; double credlim; double newcredit; int main(void) { //cout<<"ddd"; ...

1. ## need help with 10% penalty for program

#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

2. we need to add a 30\$ fee when the credit limit is exceeded and a 10% of the remaining balance that is left over
Then you might consider to start putting this two things in. If you have problems coding those conditions, ask a question.

3. Post using code tags in future, please.