Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- using namespace std;
- int main ()
- {
- string costumer_Name;
- double account_Number,monthly_Balance, original_bill=0,remaining_Balance;
- int month=1;
- cout<<"Enter the account number: ";
- cin>>account_Number;
- cout<<"Enter the name of the costumer: ";
- cin>>costumer_Name;
- cout<<"Enter the original balance : ";
- cin>>original_bill;
- remaining_Balance=original_bill;
- cout<<""<<endl;
- cout<<"Account_Number :"<<account_Number<<endl;
- cout<<"Costumer Name: "<<costumer_Name<<endl;
- while (month<11)
- {
- monthly_Balance=original_bill*.10;
- remaining_Balance=remaining_Balance-monthly_Balance;
- cout<<""<<endl;
- cout<<"For month "<<month<<" : "<<endl;
- cout<<"Your Monthly Balance is:"<<monthly_Balance<<endl;
- cout<<"Your Remaining Balance is:"<<remaining_Balance<<endl;
- cout<<""<<endl;
- month=month+1;
- }
- system ("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment