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
Solve for N. <br> 2[7-6(1-n)]+3n=-20+4[6(n+1)-3n]
jonny [76]

Solving the expression 2[7-6(1-n)]+3n=-20+4[6(n+1)-3n] we get  n=\frac{2}{3}

Step-by-step explanation:

We need to solve the equation 2[7-6(1-n)]+3n=-20+4[6(n+1)-3n] and find value of n.

Solving:

2[7-6(1-n)]+3n=-20+4[6(n+1)-3n]

Multiplying the terms inside the bracket

2[7-6+6n]+3n=-20+4[6n+6-3n]

Simplifying:

2[1+6n]+3n=-20+4[6n-3n+6]

2[1+6n]+3n=-20+4[3n+6]

2+12n+3n=-20+12n+24

2+15n=12n+4

Adding -12n and -2 on both sides

15n-12n=4-2

3n=2

n=\frac{2}{3}

So, Solving the expression 2[7-6(1-n)]+3n=-20+4[6(n+1)-3n] we get  n=\frac{2}{3}

Keywords: Solving Equations

Learn more about Solving Equations at:

  • brainly.com/question/1563227
  • brainly.com/question/2403985
  • brainly.com/question/11229113

#learnwithBrainly

3 0
3 years ago
The table below shows the total cost (TC) and marginal cost (MC) for Choco Lovers, a monopolistic firm producing different quant
goblinko [34]

Answer:

  Spreadsheet values

  • B3 = $15 (shown)
  • C4 = $420 (shown)
  • D6 = $272.5
  • E4 = $6
  • F2 = $16
  • F6 = $5

  Other values

  • profit maximizing Q: 35
  • profit maximizing P: $13
  • maximum profit: $227.5

Step-by-step explanation:

Labeling the columns of the spreadsheet A--F, and the rows 1--7, we want to find the values as follows.

a) The relationship between quantity, price, and revenue is ...

  total revenue = quantity × price

  price = (total revenue)/quantity

Then ...

  • B3 = 375/25 = 15 (as shown)
  • C4 = 30×14 = 420 (as shown)

__

b) The relationship between total cost and marginal cost is ...

  mc2 = (tc2 -tc1)/(q2 -q1)

  tc2 = (mc2)(q2 -q1) +tc1

Then ...

  • D6 = 9(40 -35) +227.5 = 272.5
  • E4 = (192.5 -162.5)/(30 -25) = 6

__

c) Marginal revenue is figured the same way as marginal cost.

  mr2 = (r2 -r1)/(q2 -q1)

Then ...

  • F2 = (320 -0)/(20 -0) = 16
  • F6 = (480 -455)/(40 -35) = 5

__

d) The quantity maximizing profit will be the quantity such that marginal revenue is equal to marginal cost. That is, marginal profit is zero. That quantity  is 35, where both marginal cost and marginal revenue are 7.

__

e) The price at a quantity of 35 is 13. This value is read from the given table.

__

f) The maximum profit is the difference between revenue and cost at the profit-maximizing quantity:

  maximum profit = 455 -227.5 = 227.5

4 0
3 years ago
It’s math I suck at it please help
nevsk [136]

Answer:

24 over 10

Step-by-step explanation:

I did it in my head

7 0
3 years ago
Read 2 more answers
How much money will be in a bank account after 4 years if $8 is deposited at an interest rate of 5%? a. $12.00 b. $10.41 c.$16.0
vichka [17]
C: 16.00 because when I multipled it was 16
4 0
3 years ago
Read 2 more answers
2x+90=7x<br><br><br><br>please explain it step-by-step ​
horrorfan [7]

Answer:

Step-by-step explanation:

2x+90=7x

2x=7x-90

2x-7x=-90

-5x+-90

x=18

6 0
3 years ago
Read 2 more answers
Other questions:
  • Sarah has a collection of nickels, dimes, and quarters worth $13.80. she has 10 more dimes than nickels and twice as many quarte
    9·1 answer
  • Find the sum of the geometric sequence –3, 15, –75, 375, … when there are 8 terms and select the correct answer below.
    8·1 answer
  • Mr. Bobo wants to ship a fishing rod to his son that is 42 inches long. He has a box that measures 10 inches by 10 inches by 40
    10·1 answer
  • How can I determine the value of x that will make the expression a real <br> √x-1
    8·1 answer
  • Genise has some savings. After babysitting, she adds $75 to her savings. How much money has Genise saved? Write an expression to
    13·1 answer
  • How to solve <br><br><br><br>w-8 when w=12
    15·2 answers
  • Examine number patters below 13,23,33,43,53
    11·2 answers
  • Easy brainliest, please help me..
    13·2 answers
  • When is an algebraic expression in its lowest term​
    12·1 answer
  • Find an equation perpendicular to y = (3/₂)x+ 1 and has a y-<br> intercept of 2.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!