Write the Java program where you have to accept the price of a new freeze from a customer, the electronic shopkeeper is giving 25% discount on it but the customer have to paid 18% GST on it. Now calculate the discount rate and the net amount of the new freeze.
Answers
Answered by
1
Explanation:
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;
}
Java
Python3
C#
PHP
please mark my answer as brainliest
Similar questions