Ask Question
10 March, 09:44

What would be the value of discountRate after the following statements 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 =.04;

else

discountRate =.03;

else

discountRate = 0;

a).03

b).05

c) 0

d).04

+1
Answers (1)
  1. 10 March, 10:29
    0
    I think the answer is. 04 or D
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What would be the value of discountRate after the following statements are executed? double discountRate = 0.0; int purchase = 1250; char ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers