Guest User

Untitled

a guest
Jul 19th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.89 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8.     string costumer_Name;
  9.  
  10.     double account_Number,monthly_Balance, original_bill=0,remaining_Balance;
  11.     int month=1;
  12.  
  13.  
  14.  cout<<"Enter the account number: ";
  15.  cin>>account_Number;
  16.  cout<<"Enter the name of the costumer: ";
  17.  cin>>costumer_Name;
  18.  cout<<"Enter the original balance : ";
  19.  cin>>original_bill;
  20.  remaining_Balance=original_bill;
  21.  cout<<""<<endl;
  22.  cout<<"Account_Number :"<<account_Number<<endl;
  23.  cout<<"Costumer Name: "<<costumer_Name<<endl;
  24.  
  25.  while (month<11)
  26. {
  27. monthly_Balance=original_bill*.10;
  28.  
  29. remaining_Balance=remaining_Balance-monthly_Balance;
  30. cout<<""<<endl;
  31. cout<<"For month "<<month<<" : "<<endl;
  32. cout<<"Your Monthly Balance is:"<<monthly_Balance<<endl;
  33. cout<<"Your Remaining Balance is:"<<remaining_Balance<<endl;
  34. cout<<""<<endl;
  35. month=month+1;
  36. }
  37.  
  38. system ("pause");
  39. return 0;
  40. }
Add Comment
Please, Sign In to add comment