1answer.
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
Lady_Fox [76]
3 years ago
7

Which of the following segments is a proper way to call the method readData four times? Group of answer choices int i = 0; while

(i < 4) { readData(); i = i + 1; } double k = 0.0; while (k != 4) { readData(); k = k + 1; } int i = 0; while (i <= 4) { readData(); i = i + 1; } int i = 0; while (i < 4) { readData(); }
Mathematics
1 answer:
OLga [1]3 years ago
6 0

Answer:

int i = 0; while (i < 4) { readData(); i = i + 1; }

Step-by-step explanation:

the above method is proper way to call the method readData four times because it will start from zero and will call readData until i=3, if i=4 it will stop calling readData.

<u>double k = 0.0; while (k != 4) { readData(); k = k + 1; } </u>

This is not the proper way to call readData four times because it will call readData only if k!=4 otherwise condition k!=4 will not be true and readData will not be called.

<u> int i = 0; while (i <= 4) { readData(); i = i + 1; }</u>

This is not the proper way to call readData four times because condition i<=4 will call readData five times starting from zero to 4.

<u>int i = 0; while (i < 4) { readData(); }</u>

This is not the proper way to call readData four times because it will call readData only one time i.e. value of is not incremented.

You might be interested in
If the sum of four times a number and four less than three times a number is seventeen
NARA [144]

Answer:

13divided by 7

Step-by-step explanation:

4x + 3x - 4 = 17 \\ 7x - 4 = 17 \\ 7x = 17 - 4 \\ 7x = 13 \\  \frac{7x}{7}  =  \frac{13}{7 }  \\ x =  \frac{13}{7} or1 \times \frac{6}{7}

8 0
4 years ago
Who lives in FL i do
Ann [662]
I live in Florida as well. FL babyeeee. Melly’s hometown yk yk
3 0
3 years ago
Read 2 more answers
You need 3/4 yard of ribbon for one gift box. You have 3 yards of ribbon. How many gift boxes do you have ribbon for
lora16 [44]

Answer:

4

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Please help! I will mark you as brainliest!
ludmilkaskok [199]

a) 3 goals

The median is the middle number of a data set. The best way to find the median is to list out all of the goals (and their frequencies!) and cross off numbers from the outside in until we find the median, or middle number.

0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4

1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4

1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4

1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3

1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3

2, 2, 2, 2, 3, 3, 3, 3, 3, 3

2, 2, 3, 3, 3, 3

3, 3

The median is 3 goals.

b) 2.33 goals

To find the mean, we add up all of our listed numbers below and divide by the total number of terms we added together.

0(2) + 1(8) + 2(4) + 3(10) + 4(6) = 70

total number of terms = 2 + 8 + 4 + 10 + 6 = 30

70 / 30 = 2.33

The mean number of goals conceded was approximately 2.33.

Hope this helps! :)

4 0
4 years ago
Provide your steps!!<br> •••••••••••••••••••••••••
atroni [7]

Answer:

946 ft²

Step-by-step explanation:

28 x 7 = 196

30 x 25 = 750

750 + 196 = 946 ft²

5 0
3 years ago
Other questions:
  • Lucy invested $770 in an account paying an interest rate of 3.2% compounded
    12·1 answer
  • How do you convert 15 ft to cm
    13·2 answers
  • Would be awesome to have help
    11·2 answers
  • Factor each expression.<br><br> Problem: g^2 - 9<br> Answer: (g + 3) (g - 3)
    14·1 answer
  • 1. These four lines have been graphed on the same coordinate grid. Which lines are parallel to each other?
    12·2 answers
  • Donner Summit, California, is a popular ski resort area. Over the past 60 years, the annual snowfall totals of Donner Summit hav
    11·2 answers
  • Directions: Study the thermometers and answer these questions.
    12·2 answers
  • Im giving out my points to the one who answers ! :)
    15·2 answers
  • Please help! It’s for a test, I’ll also give brainliest!
    7·1 answer
  • Ronald spent $123.45 on school clothes. He counted his money and discovered that he had $39.55 left. How much money did he origi
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!