Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. int main()
  2. {
  3.     float current_balance,
  4.         final_balance,
  5.         under_minimum,
  6.         alert_funds,
  7.         final_check_charge;
  8.  
  9.     double number_checks;
  10.    
  11.     cout << "Please enter the current balance: ";
  12.     cin >> current_balance;
  13.     cout << "Enter the number of checks you wish to process: ";
  14.     cin >> number_checks;
  15.     cout << "Please verify the current balance: ";
  16.     cin >> final_balance;
  17.  
  18.     if (number_checks <= 19)
  19.         (final_check_charge = number_checks * 0.10);
  20.        
  21.     else (number_checks >= 20 || <= 39)
  22.         (final_check_charge = number_checks * 0.08);
  23.        
  24.  
  25.    
  26.    
  27.  
  28.  
  29.  
  30.        
  31.    
  32.  
  33.         system("pause");
  34.         return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement