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]
2 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]2 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]2 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
Hello I need help<br> Find the missing side lengths, leave your answers as radicals in simplest form
Jet001 [13]

♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️

y =  \frac{1}{2}  \times  \frac{8 \sqrt{3} }{3}  \\

y = \frac{4 \sqrt{3} }{3}  \\

♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️

x =  \frac{ \sqrt{3} }{2}  \times  \frac{8 \sqrt{3} }{3}  \\

x = \frac{8 \times  { \sqrt{3} }^{2} }{2 \times 3}  \\

x =  \frac{8 \times 3}{2 \times 3}  \\

x =  \frac{8}{2}  \\

x = 4

♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️♥️

4 0
2 years ago
The ruby throated hummingbird has a wingbeat of about 200 beats per second about how many wing Beats would a hummingbird have in
Nady [450]
36,000 wing beats

60 sec= 1 minute 60*3=180sec/3minutes

180*200=36,000

4 0
3 years ago
A cylinder with a radius of 1 cm and a height of 21 cm has the same volume as a cone with a height of 7 cm. What is the radius o
Maru [420]
Volume of the cylinder = πr²h = π(1)² (21) = 21π cm³

Volume of the cone = 1/3 π r² h

21π = 1/3 π (r)² (7)

r³ = 21π ÷ (7/3 π) 

r² = 9

r = 3

Answer : Radius = 3
3 0
3 years ago
Cecelia's monthly mortgage payment is $1,432.26. She calculated the annual property tax on her $300,000 home and determined that
S_A_V [24]

Answer:

You provided no correct answer

Step-by-step explanation:

The way to correctly solve this problem is by ignoring the 300,000 dollar home part, and simply add the mortgage and the tax which comes out to 7432.26

6 0
3 years ago
Read 2 more answers
Hσw dσ u ѕσlvє thíѕ prσвlєm líkє multíplч вut whєn ѕímplчfíng í gσt lσѕt
Mariana [72]
3/4×2/3= 6/12÷6/6= 1/2
7 0
3 years ago
Other questions:
  • You've decided to take 3 steps and randomly choose left or right as the direction each time.
    7·2 answers
  • 1)<br>Find the value of m.<br>4(m - 2) = 24​
    11·2 answers
  • Which expression has a value that is equivalent to 5n+13 when n= -15
    11·2 answers
  • Which equation represents a line that passes through (4.) and has a slope of
    15·1 answer
  • Monkey Monkey Monkey has died :(
    13·2 answers
  • Compare -5 and -3.
    9·1 answer
  • Simplify the following:
    13·2 answers
  • 4x + 19 = ___+ 12
    9·1 answer
  • If g(x) = 1 - ¾ x <br> find: -5g(4) - 1
    14·2 answers
  • Five players are given $10 each and asked to contribute any portion of it to a group account. They are also told that the total
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!