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, 22.06.2019 00:40
Write a function 'music_func' that takes 3 parameters -- music type, music group, vocalist -- and prints them all out as shown in the example below. in case no input is provided by the user, the function should assume these values for the parameters: "classic rock", "the beatles", "freddie mercury". for example: input: alternative rock,pearl jam,chris cornell output: the best kind of music is alternative rock the best music group is pearl jam the best lead vocalist is chris cornell note: the print statements will go inside the for example: print("the best kind of music is"
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
You know the right answer?
What would be the value of discountrate after the following statements are executed?
double d...
Questions
question
Advanced Placement (AP), 21.10.2019 13:10
question
History, 21.10.2019 13:10
question
History, 21.10.2019 13:10
Questions on the website: 13722367