Posts

Showing posts from June, 2024

Product calculation P23CS399

DESCRIPTION:            ★ This program is used to calculate the included and excluded tax of products. It contains a class "Product Tax" With methods "getData()", "etcal() " and " Itcal() ".               getData() is used to get the basic details of the products like Name, Quantity, Price and Tax.           ★ etcal() is used to calculate the Excluding Tax of products.           ★ itcal() is used to calculate the Including Tax of the products. PROGRAM: public class ProductTax{     string pname;     int Qty;     float price;     float tax;     float totalamt;     float totalprice; void getData(String r,int s,float x, float y)     {        pname=r;        Qty=s;        price...