Question: JAva A programmer wrote the following code but it always assigns 0 to the total variable. How would you fix it? Rewrite ONLY the last
JAva
A programmer wrote the following code but it always assigns 0 to the total variable. How would you fix it? Rewrite ONLY the last statement.
int employeeDiscount; employeeDiscount = 15; double price; price = 99.99; double total; total = price * ((100-employeeDiscount)/100); // write the statement that will replace the statement above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
