#include <iostream>
using namespace std;
int main()
{
//Declaring variables
double initial_bal,extra_charge=0.0,service_fee;
int no_of_checks;
//Declaring constant
const double BASIC_FEE=10;
/* This loop continues to execute
* until the user enters a valid balance
*/
while(true)
{
//getting the begining balance
entered by the user
cout<<"Enter the Beginning balance :$";
cin>>initial_bal;
//if the balance is less than zero display error
message
if(initial_bal<0)
{
cout<<"**Account is Over
Drawn **"<<endl;
continue;
}
else
break;
}
//this loop continues to execute until the user enters
positive value
while(true)
{
//getting the no of checks written
from the user
cout<<"Enter no of checks written :";
cin>>no_of_checks;
//if the no of checks wruitten is positive display
error message
if(no_of_checks<0)
{
cout<<"** Invalid.Must be a
positive number **"<<endl;
continue;
}
else
break;
}
/* if the begin balance is less than 400
* we have to apply extra charges
*/
if(initial_bal<400)
{
extra_charge=15.00;
}
else
{
//based on the no of checks
calculate the service fee
if(no_of_checks<20)
{
service_fee=no_of_checks*0.10;
}
else if(no_of_checks>=20
&& no_of_checks<39)
{
service_fee=no_of_checks*0.08;
}
else if(no_of_checks>=40
&& no_of_checks<59)
{
service_fee=no_of_checks*0.06;
}
else if(no_of_checks>=60)
{
service_fee=no_of_checks*0.04;
}
}
//Displaying the total service for the month
cout<<"Bank's Service fee for the month is
:$"<<extra_charge+BASIC_FEE+service_fee<<endl;
return 0;
}
________________________
output:
__________Thank You
C++ A bank charges $10 per month plus the following check fees for a commercial checking...
Java Bank program A bank charges a base fee of $10 per month, plus the following check fees for a commercial checking account: $.10 each for less 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 for the month. The program should then calculate and display the bank’s service fees for the month.
Must be written in C++ Bank Charges A bank charges $15 per month plus the following check fees for a commercial checking account: $0.10 per check each for fewer than 20 checks (1-19) $0.08 each for 20–39 checks $0.06 each for 40–59 checks $0.04 each for 60 or more checks Write a program that asks for the number of checks written during the past month, then computes and displays the bank’s fees for the month. Input Validation: Display an error...
Must be written in C++ Bank Charges A bank charges $15 per month plus the following check fees for a commercial checking account: $0.10 per check each for fewer than 20 checks (1-19) $0.08 each for 20–39 checks $0.06 each for 40–59 checks $0.04 each for 60 or more checks Write a program that asks for the number of checks written during the past month, then computes and displays the bank’s fees for the month. Input Validation: Display an error...
El Gato Painting Company maintains a checking account at American Bank. Bank statements are prepared at the end of each month. The November 30, 2021, reconciliation of the bank balance is as follows: $3,241 1,210 Balance per bank, November 30 Add: Deposits outstanding Less: Checks outstanding #363 #365 #380 #381 #382 Adjusted balance per bank, November 30 $ 124 202 57 87 350 (820) $3,631 The company's general ledger checking account showed the following for December: Balance, December 1 Receipts...
El Gato Painting Company maintains a checking account at American Bank, Bank statements are prepared at the end of each month. The November 30, 2021, reconciliation of the bank balance is as follows: $3,231 1,200 Balance per bank, November 30 Add: Deposits outstanding Less: Checks outstanding #363 #365 #380 #381 #382 Adjusted balance per bank, November 30 $123 201 56 86 340 (806) $3,625 The company's general ledger checking account showed the following for December: Balance, December 1 Receipts Disbursements...
El Gato Painting Company maintains a checking account at American Bank. Bank statements are prepared at the end of each month. The November 30, 2021, reconciliation of the bank balance is as follows: $3,331 1,300 Balance per bank, November 30 Add: Deposits outstanding Less: Checks outstanding #363 #365 #380 #381 #382 Adjusted balance per bank, November 30 $ 133 211 96 440 (946) $3,685 The company's general ledger checking account showed the following for December: Balance, December 1 Receipts Disbursements...
El Gato Painting Company maintains a checking account at American Bank. Bank statements are prepared at the end of each month. The November 30, 2016, reconciliation of the bank balance is as follows: Balance per bank, November 30 $3,231 Add: Deposits outstanding 1,200 Less: Checks outstanding #363 $123 #365 201 #380 56 #381 86 #382 340 (806) Adjusted balance per bank, November 30 $3,625 The company's general ledger checking account showed the following for December: Balance, December 1 $ 3,625...
El Gato Painting Company maintains a checking account at American Bank. Bank statements are prepared at the end of each month. The November 30, 2016, reconciliation of the bank balance is as follows: Balance per bank, November 30 $3,231 Add: Deposits outstanding 1,200 Less: Checks outstanding #363 $123 #365 201 #380 56 #381 86 #382 340 (806) Adjusted balance per bank, November 30 $3,625 The company's general ledger checking account showed the following for December: Balance, December 1 $ 3,625...
The Fitzgerald Company maintains a checking account at the Bank of the North. The bank provides a bank statement along with canceled checks on the last day of each month. The October 31, 2016, bank statement included the following information: Balance, October 1, 2016 Deposits Checks processed Service charges NSF checks Monthly loan payment deducted directly by bank from account (includes $440 in interest) $ 32,730 88,000 (77,200) (390) (1,640) (3,840) Balance, October 31, 2016 $ 37,660 The company's general...
Harrison Company maintains a checking account at the First National City Bank. The bank provides a bank statement along with canceled checks on the last day of each month. The July 2021 bank statement included the following information: Balance, July 1, 2021$57,803Deposits181,200Checks processed(194,310)Service charges(60)NSF checks(2,050)Monthly payment on note, deducted directly by bank from account(includes $170 in interest)(4,170)Balance, July 31, 2021$38,413 The company’s general ledger account had a balance of $41,313 at the end of July. Deposits outstanding totaled $8,000 and...