answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sleet_krkn [62]
2 years ago
3

Complete the do-while loop to output every number from 0 to countlimit using printval. assume the user will only input a positiv

e number. for example, if countlimit is 5 the expected output will be 0 1 2 3 4 5

Mathematics
2 answers:
Anastasy [175]2 years ago
7 0

Answer:

while ( printVal <= countLimit );

Step-by-step explanation:

Rasek [7]2 years ago
6 0
Hi, here's a do-while loop using C++ programming language. 

int countlimit; //input from user
int printval =0; //initial value of printval


cout<<"Enter a positive number:"; //suppose user inputs 5
cin>>countlimit; //value 5 will be stored inside variable countlimit
do{ //start of do-while loop
cout<<printval; //print initial value
printval++; // increment printval 

}while(printval>=countlimit); //if condition is true, loops back to beginning of do

Loops ends and stops printing if countlimit (of 5, in this example) is reached. 


You might be interested in
Mauryn wrote the following word problem to represent a linear function. sandwiches at King sandwich cost the same amount and inc
oksano4ka [1.4K]
The answer is c.(0,1.50) because $5.25 and $6.25 if u use a calculator u will see your answer
6 0
2 years ago
Read 2 more answers
Polygons ABCD and EFGH are similar. Find the length of EH?
3241004551 [841]

Most likely, polygon <span>ABCD</span> has sides of known lengths.
It is also likely that one of the sides of polygon <span>EFGH</span> (not <span>EH</span>) is also known. For instance, its side <span>EF</span>.

If the above is true, we can find the scaling factor as a ratio between lengths of corresponding sides:
<span>r=<span><span>EF</span><span>AB</span></span></span>

Since this ratio is constant for any two corresponding lengths,
<span>r=<span><span>EH</span><span>AD</span></span></span>

From the last two equations we can derive:
<span>EH=AD⋅<span><span>EF</span><span>AB</span></span></span>

Hope That Helped : ) (Took a minute)
5 0
2 years ago
An up-and-coming artist has 85 followers on Twitter and this number doubles every week. In what week will the artist first reach
Alik [6]

Answer:

5.8 , which approximately is 6 weeks.

Step-by-step explanation:

the first method is the short one since u just have to double the 85 then divide to 1000.

1000 ÷ ( 85 × 2)

1000 ÷ 170 = 5.882,,,,,. round off to whole number to get 6.

the second method is the addition method.

we start by 85 then keep doubling 85 for every week........inshort.......we add 170 to each weeks number to get the number of followers for the following week.

85 ⇒ 170 ⇒ 340 ⇒ 510 ⇒ 680 ⇒ 850 ⇒ 1020.

     1st      2nd      3rd     4th      5th         6th     week.

u notice that we add (85×2), 170, to get the following week's number of followers..

in 5 weeks..... the number of followers is yet to get to 1000.

when u divide, u get 5.8.....,and it is not logic to say 5.8823....weeks

since she reaches 1000 followers in the 6th week.......though there is an addition,,,, it is the most appropriate answer.

3 0
2 years ago
The Acme Candy Company claims that​ 60% of the jawbreakers it produces weigh more than 0.4 ounces. Suppose that 800 jawbreakers
vichka [17]

Answer:

Yes, it would be statistically significant

Step-by-step explanation:

The information given are;

The percentage of jawbreakers it produces that weigh more than 0.4 ounces = 60%

Number of jawbreakers in the sample, n = 800

The mean proportion of jawbreakers that weigh more than 0.4 = 60% = 0.6 = \mu _ {\hat p} =p

The formula for the standard deviation of a proportion is \sigma  _{\hat p} =\sqrt{\dfrac{p(1-p)}{n} }

Solving for the standard deviation gives;

\sigma  _{\hat p} =\sqrt{\dfrac{0.6 \cdot (1-0.6)}{800} } = 0.0173

Given that the mean proportion is 0.6, the expected value of jawbreakers that weigh more than 0.4  in the sample of 800 = 800*0.6 = 480

For statistical significance the difference from the mean = 2×\sigma _{\hat p} = 2*0.0173 = 0.0346 the equivalent number of Jaw breakers = 800*0.0346 = 27.7

The z-score of 494 jawbreakers is given as follows;

Z=\dfrac{x-\mu _{\hat p} }{\sigma _{\hat p}  }

Z=\dfrac{494-480 }{0.0173  } = 230.94

Therefore, the z-score more than 2 ×\sigma _{\hat p} which is significant.

8 0
2 years ago
Jackson owns stock in Jerry's Paints. Today, he received a check reflecting his portion of the company's quarterly profits. This
kompoz [17]
2.) dividend
because its quarterly
3 0
2 years ago
Read 2 more answers
Other questions:
  • On January 1st, Jerome concocts a rumor and tells Beth. On January 2nd, they each tell a new person. By the end of January 2nd,
    13·1 answer
  • Write the polynomial of least degree with roots -2, 5, and 7.
    9·1 answer
  • Azul performed an experiment to determine which crank powered radio works best. He cranked 15 randomly selected radios of each b
    12·2 answers
  • Which ordered pair would form a proportional relationship with the point graphed below​
    9·2 answers
  • Using the midpoint method, find the cross-price elasticity of demand for FedEx and UPS overnight shipping if the price of FedEx
    10·1 answer
  • Mary Ann is printing pictures from her recent trip to Europe. An online print shop charges $0.15 per
    5·1 answer
  • Nia wants the total weight of her luggage to be no more than 50 kilograms.she has three suitcases that weigh 15.8 kilograms,17.4
    7·1 answer
  • Mikhail believes he can use the multiplication expression 1/2x6 to find the total number of
    9·1 answer
  • The number of newly reported crime cases in a county in New York State is shown in the accompanying table, where x represents th
    15·1 answer
  • Coma and death are possible when _____.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!