Question: can you please explain how to get the answer? discountRate after the following statements 32. What would be the value of are executed? double discountRate
discountRate after the following statements 32. What would be the value of are executed? double discountRate = 0.0; int purchase = 1250; char cust = 'N'; if (purchase > 1000) if (cust == "Y") discountRate = .05; else discountRate = .04; else if (purchase > 750) if (cust == 'Y') discountRate = .03; else discountRate = .02; else discountRate = 0; discountRate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
