Write an algorithm to print the bill depending upon the price and quantity of an item. Also print bill GST, which is the bill after adding 5% of tax in the total bill.
Answers
Answered by
0
Answer:
// CPP Program to compute GST from original
// and net prices.
#include <iostream>
using namespace std;
float Calculate_GST(float org_cost, float N_price)
{
// return value after calculate GST%
return (((N_price - org_cost) * 100) / org_cost);
}
// Driver program to test above functions
int main()
{
float org_cost = 100;
float N_price = 120;
cout << "GST = "
<< Calculate_GST(org_cost, N_price)
<< " % ";
return 0;
}
Similar questions