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

 can you please explain how to get the answer? discountRate after
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 = 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

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!