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
Len [333]
3 years ago
10

There is a school with 1,000 students and 1,000 lockers. On the first day of term the headteacher asks the first student to go a

long and open every single locker, he asks the second to go to every second locker and close it, the third to go to every third locker and close it if it is open or open it if it is closed, the fourth to go to the fourth locker and so on. The process is completed with the thousandth student. How many lockers are open at the end?
Mathematics
2 answers:
zloy xaker [14]3 years ago
5 0
As many were opened during the time period. Jk, I don't know. This is a hard one
FinnZ [79.3K]3 years ago
5 0
Hello,

answer: 31

I have make a programm in Qbasic

CONST Faux = 0
CONST Vrai = NOT (Faux)
CONST nb = 1000
DIM SHARED locker(nb) AS INTEGER
DIM i AS INTEGER, j AS INTEGER, answer AS INTEGER
'1 first student
FOR i = 1 TO nb: locker(i) = Vrai: NEXT i: ' CALL See
'2 2nd student
FOR i = 2 TO nb STEP 2: locker(i) = Faux: NEXT i: 'CALL See
FOR j = 3 TO nb
    FOR i = j TO nb STEP j
        locker(i) = NOT (locker(i))
    NEXT i
    'CALL See
NEXT j
answer = 0
FOR i = 1 TO nb
    IF locker(i) THEN answer = answer + 1
NEXT i
PRINT "answer="; answer
END

SUB See

SHARED locker() AS INTEGER
DIM i AS INTEGER
locker(0) = 0
FOR i = 1 TO nb
    PRINT locker(i);
    IF locker(i) THEN locker(0) = locker(0) + 1
NEXT i
PRINT locker(0)

END SUB


You might be interested in
I NEED HELP ( please dont steal or guess means not to me) and I will giver brainiest if you have proof
Vedmedyk [2.9K]

Answer:

<h2>option d, 7.25</h2>

Step-by-step explanation:

2AB=YZ(By parallel line theorem)

4x-8=21

4x=29

<h2>x=29/4=7.25</h2>
6 0
3 years ago
:) Simplify 2^4 x 2^6 / 2^5
Sladkaya [172]

Answer:

2^5

Step-by-step explanation:

2^4 × 2^6 ÷ 2^5

= 2^10 ÷ 2^5

=2^5

8 0
3 years ago
Fill in the table using this function rule.<br> y=5x-1
zalisa [80]

Answer:

Step-by-step explanation:

5 0
2 years ago
Read 2 more answers
What is the result of 6 / 2(1 + 2) =
castortr0y [4]
1 plus 2 = 3, then u do 6/2 (3), then 3x3 = 9
3 0
3 years ago
A scatter plot showed a positive correlation for 11 bowlers. As the number of strikes, s, a bowler made in a game increased, the
almond37 [142]

Answer:

s = 4

Step-by-step explanation:

The equation for the line of best fit for the data is p=25s+40.

Where p is no. of points and s is no. fo strikes

We need to find the number of strikes made by a bowler with 140 points.

Put p = 140

p=25s+40

140 = 25s+40

Subtract 40 to both sides,

140-40 = 25s+40-40

100 = 25s

⇒ s = 4

So, there are 4 strikes made by a bowler with 140 points.

5 0
3 years ago
Other questions:
  • Simplify [2 (cos 210 + i sin 210)]^2
    10·1 answer
  • Which of the following statements is true
    7·1 answer
  • A 33kg child is on a swing that hangs from 3.00m long chains as shown in the figure below. if the maximum angle the child reache
    7·1 answer
  • If someone could help me with this that would be great!!! TYSM
    8·2 answers
  • 6x+14=4x+4
    13·2 answers
  • Use simple interest to find the ending balance<br>$14,000 at 6% for 9 years​
    14·1 answer
  • In a unit circle, 0 = 270º. What is the terminal point?
    15·1 answer
  • Write 3.777777777 as a mixed number
    13·2 answers
  • In a circle of radius 1, what is the length of an arc cut off by a central angle of 2 radians?
    7·1 answer
  • Name 3 pairs of congruent angles.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!