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
lesya [120]
3 years ago
7

What is nbr2 at the end of the program segment execution? nbr2 = 0 calc = 1 x = 7 while x >=3 calc = calc * x x = x - 2

Mathematics
1 answer:
Rashid [163]3 years ago
5 0

Answer:

nbr2 = 0

Step-by-step explanation:

Given

The following program segment

<em>nbr2 = 0 </em>

<em>calc = 1 </em>

<em>x= 7 </em>

<em>while x >=3: </em>

<em>    calc = calc * x </em>

<em>    x = x - 2</em>

<em />

Required

The value of nbr2

In the first line, nbr2 was initialized to 0 i.e.

<em>nbr2 = 0</em>

<em />

From the second line of the program till the last, no operation was carried out on nbr2

This means that nbr2 will maintain its original value (which is 0)

Hence,

<em>The value of nbr2 is 0</em>

You might be interested in
You have money in an account at 6% interest, compounded monthly. To the nearest year, how long
zimovet [89]

Answer:

Step-by-step explanation:

Let amount now be x , meaning principal is x

and the amount later A is 2x

A = P(1+r/n)^nt

n = 12

2x = x (1 + 0.06/12)^12t

divide through by x

2 = (1+ 0.005)^12t

2 = (1.005)^12t

Take log of both sides

log 2 = 12t log 1.005

12t = log2/log 1.005

12t = 138.975721610697

t = 138.975721610697/12

t = 11.58

t = 12 years

6 0
3 years ago
Please help me and show your work
morpeh [17]

Answer:

Step-by-step explanation:

y = 3x + 4

Plugin x = 3 in the equation,

y = 3*3 + 4

 = 9 + 4

y = 13

Plugin x = 4 in equation,

y = 3*4 + 4

  = 12 + 4

y = 16

Plugin x = 5 in the equation,

y = 3*5 + 4

  = 15 + 4

y = 19

2) y =x - 7

Plugin x = 10 in the equation

y = 10 - 7

y = 3

Plugin x = 15 in the equation

y = 15 - 7

y = 8

Plugin x = 20 in the equation

y = 20 - 7

y = 13

6 0
2 years ago
The coastline of the US is 12,383 miles long. Canada's coastline is 113,211 miles longer than the coastline of the US. How long
Vanyuwa [196]
I'm assuming this is just a simple addition problem so 12,383 miles plus 113,211 miles is equal to 125 594 miles
8 0
3 years ago
write the equation of the line (in slope-intercept form) that passes through the points (2,3 and (5,7)
AfilCa [17]

Answer:

The answer to your question is    y = 4/3x + 1/3

Step-by-step explanation:

Data

Point A = (2, 3)

Point B = (5, 7)

Process

1.- Calculate the slope

x1 = 2    y1 = 3

x2 = 5    y2 = 7

m = (y2 - y1)/(x2 - x1)

- Substitution

  m = (7 - 3)/(5 - 2)

- Slope

  m = 4/3

2.- Find the equation of the line

     y - y1 = m(x - x1)

     y - 3 = 4/3(x - 2)

     y - 3 = 4/3x - 8/3

     y = 4/3x - 8/3 + 3

     y = 4/3x - 8/3 + 9/3

     y = 4/3x + 1/3

8 0
3 years ago
Janine has 3 3/4 cup of flour. She uses 1/3 of the flour to make pancakes.How many cups of flour did she use?
KATRIN_1 [288]
1 1/4 cups of flour was used
8 0
3 years ago
Read 2 more answers
Other questions:
  • All of the following are examples of units except
    10·1 answer
  • What is the answer to this question
    7·1 answer
  • Which undefined terms are needed to define parallel lines? A. Point, line B. Point, coplanar C. Line, plane D. Coplanar, line
    8·2 answers
  • Solve the inequality<br> - 7&lt;-5.
    10·2 answers
  • Divide 4 2/3 divided by 1 2/3
    14·1 answer
  • Find the 3rd term of an arithmetic sequence with t5 = 3 and t7 = 7.
    6·1 answer
  • Please Help! Math Question!
    6·2 answers
  • I need help it khan 4q+3+2q-1​
    13·1 answer
  • HELP!!!!
    5·2 answers
  • What are levels of mathematical acquisition in pre-junior
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!