IN C ++ The Luv-UR-$ Bank charges the following rates for its commercial checkin
ID: 664834 • Letter: I
Question
IN C ++
The Luv-UR-$ Bank charges the following rates for its commercial checking accounts:
Luv-UR-$ Bank Fees
Be sure to add 8.25% sales tax to each customer charge.
Here is an example program dialogues to guide your efforts:
Lemme Calculate Your Banking Fees!
Minimum Balance This Month:3300.50
Checks Processed This Month:15
Your Bank Fees This Month Will Be $1.62 Including 8.25% Sales Tax
Lemme Calculate Your Banking Fees!
Minimum Balance This Month:175.50
Checks Processed This Month:20
Your Bank Fees This Month Will Be $29.23 Including 8.25% Sales Tax
Your program should properly request input from the user and use constants to represent certain fixed values.
Luv-UR-$ Bank Fees
Description Cost Monthly Service Fee(Waived For All Accounts WIth A Minimum Balance Greater Than $1,000) $ 10.00 per month Checks Processed $ 0.10 per check processed Low Balance Fee (When Minimum Balance Falls Below $250) $ 15.00 per month
Explanation / Answer
#include <iostream.h>
#include <conio.h>
#include <iomanip.h>
#include <stdio.h>
#include <stdlib.h>
const float minBalLimit = 1000.00; // minimum Balance Limit
const float chkCharges = 0.10; // Charge per check issued
const float monSrvFee = 10.00; // Monthly Service fee is balance falls < 1000
const float lowBalFee = 15.00; // Low balance fee if balance falls < 1000
const float salestax = 0.0825; // Sales Tax of 8.25%
void main()
{
float minBal, fees=0.0;
int numOfChks;
cout << setprecision(2);
clrscr();
cout << endl << "Bank Charges Let me Calculate Your Bank Charges for this month" ;
cout << endl << " Minimum Balance This Month: ";
cin >> minBal;
if ( minBal < 1000.00 ) {
fees = fees + monSrvFee + lowBalFee;
} // end of if
cout << endl << "Checks Processed This Month: ";
cin >> numOfChks;
fees = fees + numOfChks * chkCharges;
fees = fees + fees * salestax; // add tax of 8.25%
cout << endl << "Your Bank Fees for This Month Will Be $" << fees << " including 8.25% Sales Tax";
cout << endl << " Thanks for using Luv Your Dollor Bank " << endl;
}
ouput:
when I pasted the output screen shots, it says Answer cannot be longer than 65,000 characters hence I had to type the answers I got from the compiler:
Run 1:
Bank Chrges Let me Calculate Your Bank Charges for this month
Minimum Balance This Month: 975.55
Checks Processed This Month: 20
Your Bank Fees for This Month Will Be $29.23 including 8.25% Sales TAx
Thanks for using Luv Your Dollor Bank
Run 2:
Bank Chrges Let me Calculate Your Bank Charges for this month
Minimum Balance This Month: 7659.95
Checks Processed This Month: 45
Your Bank Fees for This Month Will Be $4.87 including 8.25% Sales TAx
Thanks for using Luv Your Dollor Bank
Run 3:
Bank Chrges Let me Calculate Your Bank Charges for this month
Minimum Balance This Month: 957.45
Checks Processed This Month: 65
Your Bank Fees for This Month Will Be $34.1 including 8.25% Sales TAx
Thanks for using Luv Your Dollor Bank