# computer science

posted by josh

a bank charges \$10 per month plus the following check fees for a commercial checking account:

\$.10 each for fewer than 20 checks
\$.08 each for 20-39 checks
\$.06 each for 40-59 checks
&.04 each for 60 or more checks

write a program that asks for the number of checks written during the past moth, then computers and displays the bank's fees for the month

in a C++

1. Anonymous

A software company sells a package that retails for \$99.Quantity discounts are given according to the following table:

2. kory

#include<iostream>
#include<iomanip> // manipulator

using namespace std;
void main ()
{
bool number = true; // flag
int Nchecks; // number of ticket
float Obalance, // opening balance
Cfee, // checking fee
Cbalance; // closing balance
const float Mfee=10, // monthly fee
Exfee=15; // extra fee

cout << "Enter your beginning balance: ";
cin >> Obalance;
cout << endl << "Enter your number of check written:";
cin >> Nchecks;
cout << endl << endl << "Bank Statement" << endl<<endl;

if ( Nchecks < 0 ) // flag statement
{
number = false;
cout << "Invalid number" << endl;
cout << "Input the number greater than 0" << endl;
}

else if ( Nchecks>=0&&Nchecks< 20 ) // else if statements
Cfee = 10;
else if ( Nchecks>=20&&Nchecks<=39)
Cfee = 8;
else if ( Nchecks>=40&&Nchecks<=59)
Cfee = 6;
else if ( Nchecks>=60)
Cfee = 4;

Cbalance = Obalance + Mfee + Cfee; // calculation

if ( Obalance < 400) // case of under 400
{
if ( Nchecks>=0&&Nchecks< 20 )
Cfee = 10;
else if ( Nchecks>=20&&Nchecks<=39)
Cfee = 8;
else if ( Nchecks>=40&&Nchecks<=59)
Cfee = 6;
else if ( Nchecks>=60)
Cfee = 4;

Cbalance=Obalance + Mfee + Cfee + Exfee;
}

if ( number ) // for true flag
{
cout<<setprecision(2)<<setiosflags(ios::fixed|ios::showpoint);
cout<<"Opening Balance:"<<setw(14)<<"\$"<<setw(10)<<Obalance<< endl;
cout<<"Monthly Fee:"<<setw(18)<<"\$"<<setw(10)<<Mfee<<endl;
cout<<"Checking Fee:"<<setw(17)<<"\$"<<setw(10)<<Cfee<<endl;
cout<<"Closing Balance:"<<setw(14)<<"\$"<<setw(10)<<Cbalance<<endl;
}

}

here is one way hope it helps!

3. Anonymous

#include <iostream>
using namespace std;

int main()
{

double checks;
int monthBankCharge = 10;
cout << "Enter the amount of checks you've written in the past month\n";

cin >> checks;

if (checks < 20)
{ cout << checks * 0.10 << endl;}

else if (checks >= 20)
{ cout << checks* 0.08 << endl;}

else if (checks >= 40)
{ cout << checks * 0.06 << endl;}

else if (checks >= 60)
{ cout << checks * 0.04 << endl;}

system("pause");
return 0;

## Similar Questions

1. ### ALGEBRA 1 A

Would someone check my answer please? Thank you. A bank offer two checking plans. the anywhere plan charges 30 cent per check, the accucheck plan cost \$0.64 a month, plus 22cent per check, for what number of checks will the accucheck
2. ### math

Ann had a balance of \$25 in her checking account. She wrote three checks for \$5.00 each, one check for \$28, and two checks for \$22 each. What was her new balance?
3. ### Accounting

Need help with this bank reconciliation...this is actually for a job and I am forgetting everything about accounting because I am nervous. BANK RECONCILATION ============================================== On Aug 14th, One of our Partner's …
4. ### Algebra :/

A bank offers two checking plans anywhere charge .15 cents a check; accucheck cost .77cents a month plus 8 cents per check. For what number of checks will the accucheck plan cost less than anywhere check?
5. ### Bank Reconciliation

Aug 14th, One of our Partner's ( Compuville ) cash book showed a debit balance of \$4,000.00. His bank statement showed a balance of \$4,270.00. On comparison the following were found: * check issued amounting to \$2,500.00 has not been …
6. ### finance

computing checking account balance. based on the following information,determine the true balance in your checking account. balance in your checkbook-\$356 balance on bank statement,\$472 service charge and other fees, \$15 interest earned …
7. ### Accounting

Can someone show me this bank reconciliation?
8. ### Computer

I have the answer I was looking for, but do not know exactly how to format it into Excel. Can you please show that format ASAP?
9. ### Computer Programming

Hello, Any help on the following problem would be greatly appreciated. The assignment is done with .java in eclipse. I have a class and a form with a Jlist, 2 text fields to enter the check amount and the ending Balance and a calulate …
10. ### Math

First Bank charges \$4.50 per month for a basic checking account plus \$0.15 for each check written. Citizen's Bank charges a flat fee of \$9. How many checks would you have to write each month in order for the cost to be the same at …

More Similar Questions