Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A bank charges $10 per month plus the following check fees for a commercial chec

ID: 440353 • Letter: A

Question

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

Input Validation: Do not accept a negative value for the number of checks written.

I am using C++, so the program should start of as include <iostream>

Explanation / Answer

#include using namespace std; int main() { int checks = 0; double balance,fee; cout checks; if (checks < 0) { cout "Can't do that"; } if (checks < 20 ) { fee = .10 * checks + 10 + 15; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote