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
What si the exponential form of 243
dezoksy [38]
2.43 x 10^2

Hope this helps
7 0
3 years ago
Read 2 more answers
Jenny drove her tractor down a row of her cornfield. She drove at constant velocity of 34metersperminute down the row. The row w
tamaranim1 [39]

Answer:

5 mins

Step-by-step explanation:

680/4

=170 meters (quarter of 680m)

170/34

=5 mins

7 0
2 years ago
Read 2 more answers
A garden is designed in the shape of a rhombus formed from 4 identical 30°-60°-90° triangles. The shorter distance across the mi
Alchen [17]
        It also means that a rhombus is formed from 2 identical equilateral triangles ( 2 identical 30 - 60 - 90 triangles forms one equilateral ) and a side of that triangle measures : 30 feet. 
      Answer:
      The perimeter of the garden :  4 * 30 = 120 feet
4 0
3 years ago
Read 2 more answers
I need help wit this
kramer

Answer:

Step one is incorrect

Step-by-step explanation:

4 0
3 years ago
In which place is the digit in the number 5341 that would be changed to form 5841
seropon [69]
It would 100,000 place
8 0
2 years ago
Other questions:
  • Which unit would you use to measure the amount of water in a swimming pool?
    7·1 answer
  • 9. Compare these measurements. 3250 meters _____ 3.5 kilometers
    7·1 answer
  • Write the equation of the circle with center (2, -3) and a radius of 4. A) (x + 2)2 + (y - 3)2 = 4 Eliminate B) (x - 2)2 + (y +
    7·1 answer
  • What is the equation of the line that passes through (5, 3) and (4, 5)
    15·1 answer
  • How do you solve. Surface. Areas
    5·2 answers
  • What is the value of 5 - (-5)?
    5·2 answers
  • Which of the following coordinate pairs make the equation x - 9y = 12 true?
    6·1 answer
  • Which scenario would result in 12 possible outcomes?
    11·1 answer
  • How do you get this annoying anime kid shut up?
    7·2 answers
  • My math teacher just gave me a super hard question WILL GIVE CROWN!!!!
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!