Question: - Write Java code to compute and print the total for a sale. - The cost of the items being purchased is stored in subTotal,

- Write Java code to compute and print the total for a sale. - The cost of the items being purchased is stored in subTotal, a variable of type double. - A variable customerType, of type char, has the value ' N ' for normal or ' G ' for government. Customers of type ' G ' do not pay sales tax. - The sales tax rate is stored in a constant named TAX_RATE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
