A bank charges $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 cecks
$.06 each for 40-59 checks
$.04 each for 60 or more checks
The bank also charges an extra $15 if the balance of the account falls below $400 (before any check fees are applied). Write a program that asks for the beginning balance and the number of checks written. Compare and display the bank's service fees for the month.
Input Validation: Do not accept a negative value for the number of checks written. If a negative value is given for the beginning balance, display an urgent message indicating the account is overdrawn.
her is what i have so far, if you don't mind could you tell me the operations i need to figure this out:
#include <iomanip>
#include <iostream>
using namespace std;
int main()
{
double begbal, checkw, ppch, banksf;
banksf = 10
cout << "Enter your beginning balance ";
cin >> begbal;
cout << "Enter the number of written checks ";
cin >> checkw
if (checkw < 20)
ppch = .10
else if (checkw == 20 || checkw <= 39)
ppch = .08
else if (checkw == 40 || checkw <= 59)
ppch = .06
else if (checkw > 60)
ppch = .04
else
cout << fixed << setprecision(2);
return 0;
}