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

- 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!