Ask Question
16 July, 21:10

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

+5
Answers (1)
  1. 16 July, 21:31
    0
    I think the answer is. 04 or D
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers