Skip to content

Instantly share code, notes, and snippets.

@sr229
Created November 28, 2016 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sr229/5a47f03f157a983abe3481ff288904e4 to your computer and use it in GitHub Desktop.
Save sr229/5a47f03f157a983abe3481ff288904e4 to your computer and use it in GitHub Desktop.
why 😂 🔫
#include <iostream>
using namespace std;
int main ()
{
int accnt_no, BC, FCDA, EC, MSC, total, VAT, total_bill, A, a;
char accnt_name, serv_add, repeat, cust_t, conn_t, ms, R, O, S, T ;
cout<<"***********************************************"<<endl;
cout<<"*Welcome to Milkshake Water-Billing Calculator*"<<endl;
cout<<"***********************************************"<<endl;
cout<<"\n";
cout<<"Account Number:"<<endl;
cin>> accnt_no;
cout<<"Account Name:"<<endl;
cin>> accnt_name;
cout<<"Address:"<<endl;
cin>> serv_add;
cout<<"Customer Type:"<<endl;
cin>> cust_t;
cout<<"\n";
if (cust_t=='R'||cust_t=='S' && conn_t=='U' && a<=10 && ms==A )
{
BC= 84.70;
VAT= BC*0.12;
}
do
{
cout<< accnt_no<<endl;
cout<< accnt_name<<endl;
cout<< serv_add<<endl;
cout<<"\n";
cout<<"Basic Charge:"<<BC<<endl;
cout<<"Foreign Currency Differential Adjustment:"<<FCDA<<endl;
cout<<"Environmental Charege:"<<EC<<endl;
cout<<"Maintenance Service Charge:"<<MSC<<endl;
cout<<"Total Current Charges before Taxes:"<<total<<endl;
cout<<"Value-Added Tax (VAT):"<<VAT<<endl;
cout<<"Total Amount:"<<total_bill<<endl;
cout<<"DO YOU WANT ANOTHER TRANSACTION? (Y or N):"<<endl;
cin>> repeat;
}
while (repeat=='Y'||repeat=='y');
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment