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 durign the past month, then computes an displays the bank's fees for the month.

using namespace std;

int main ()

{

int numChecks;

cout "Please enter an integer value for number of checks written : ";

cin numChecks;

cout "Number of checks written for the month " numChecks " \n";

float BankFee ;

float checkFee 0.0;

if (numChecks 0 && numChecks 20)

checkFee *numChecks;

else if (numChecks 20 && numChecks 39)

checkFee ...

A bank

solarc

**Excerpt from file: **Abankcharges10permonthplusthefollowingcheckfeesforacommercialcheckingaccount: .10eachforfewerthan20checks .08eachfor2039checks .06eachfor4059checks .04eachfor60ormorechecks Writeaprogramthatasksforthenumberofcheckswrittendurignthepastmonth,then computesandisplaysthebank'sfeesforthemonth. #include

**Filename: **
a-bank-charges-10-per-month-plus-the-following-check-fees-for-a-commercial-checking-account-24.docx

**Filesize: **
< 2 MB

**Downloads: **
0

**Print Length: **
2 Pages/Slides

**Words: **
143

Surround your text in `*italics*`

or `**bold**`

, to write a math equation use, for example, `$x^2+2x+1=0$`

or `$$\beta^2-1=0$$`

Stats

Views: 8

Asked: 3 years ago