This will be the output
Here's the code:
# include <iostream>
using namespace std;
int main ()
{
float a=0, b=0;
cout<<"Pizarita House"; cout<<endl;
cout<<"Enter Gross Bill: "; cin>>a;
cout<<"Service Tax: "; cout<<0.10<<endl;
cout<<"Sales Tax: "; cout<<0.04<<endl;
cout<<"Total Bill: "; cout<<a+(a*0.14); cout<<endl;
cout<<"Amount Bill: "; cin>>b;
cout<<"Change: "; cout<<b-(a+(a*0.14));
cout<<endl;
system ("pause");
}
That's all. Enjoy:)
Please convert to JAVA language
ReplyDeletepwede po pconvert to php
ReplyDelete