subject

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) .04
b) .03
c) .05
d) 0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
You know the right answer?
What would be the value of discountrate after the following statements are executed?
double d...
Questions
question
Mathematics, 19.11.2020 22:00
question
English, 19.11.2020 22:00
question
Mathematics, 19.11.2020 22:00
question
Mathematics, 19.11.2020 22:00
question
Mathematics, 19.11.2020 22:00
question
Mathematics, 19.11.2020 22:00
question
History, 19.11.2020 22:00
Questions on the website: 13722360