subject
Mathematics, 30.07.2019 21:20 aliciabrown73

For each sample of code given below, indicate precisely how many times each line runs in terms of the variables given. sometimes, you will be able to give an exact integral answer, like "10". other times, your answer will be in terms of n or some other variable or combination of variables. if the snippet of code is a method, you do not have to write the number of times the top line (the method declaration itself) is executed.
q3.
for (int i=0; i
for (int j=n; j> =i;
cout < < i < < β€œ,” < < j <
}
q4.
for (int i=0; i n = 2*k
for (j=n/2; j> i;
sum = i+j;
}

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 15:00
The blue whale is the largest animal living on the earth. the average blue whale measures 100 feet long (30 meters) and weighs 300,000 pounds (136,000 kilograms). a whale’s head is 1⁄3 of the length of its body. a new baby whale is 1⁄4 the length of a grown whale. the average man is 1⁄17 the length of a blue whale, and 1⁄1,818 its weight. a human baby measures 1⁄4 of the length of an adult. calculate the following information: how long is a whale’s head? how long is a new baby whale? how tall is the average man? how much does the average man weigh? how tall is the average human baby?
Answers: 1
question
Mathematics, 21.06.2019 16:00
Trish receives $450 on the first of each month. josh receives $450 on the last day of each month. both trish and josh will receive payments for next four years. at a discount rate of 9.5 percent, what is the difference in the present value of these two sets of payments?
Answers: 1
question
Mathematics, 21.06.2019 18:30
Acoin bank containing only dimes and quarters has 12 more dimes than quarters. the total value of the coins is $11. how many quarters and dimes are in the coin bank?
Answers: 1
question
Mathematics, 21.06.2019 21:20
Amajor grocery store chain is trying to cut down on waste. currently, they get peaches from two different distributors, whole fruits and green grocer. out of a two large shipments, the manager randomly selects items from both suppliers and counts the number of items that are not sell-able due to bruising, disease or other problems. she then makes a confidence interval. is there a significant difference in the quality of the peaches between the two distributors? 95% ci for pw-pg: (0.064, 0.156)
Answers: 3
You know the right answer?
For each sample of code given below, indicate precisely how many times each line runs in terms of th...
Questions
question
English, 24.12.2019 12:31