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
 !!!MAJOR HELP AND NO LINKS AND IF YOU DONT KNOW BUT YOU STILL ANSWER, I WILL REPORT IF YOU SAY SOMETHING THAT IS NOT AN ANSWER
Artemon [7]

Answer:

the answer is 1,2 and 4 hope it helps

8 0
2 years ago
What is the circumference in centimeters of the circle 24cm
faltersainse [42]

Answer:

75.36

Step-by-step explanation:

C= 2 pi r

c= d pi

c= 24*3.14

c= 75.36

3 0
2 years ago
Help plz <br> Help<br> Help<br> Help
jek_recluse [69]
The answer is -45 so C.
5 0
3 years ago
Read 2 more answers
Example: Find the circumference of the circle with a radius of 5 inches. Solution: Step 1: Write down the formula: IC = 2tr Step
GREYUIT [131]

Answer:

1. The circumference of any circle equals two times its radius multiplied by pi (π, approximately 3.14). We can also say it equals pi times its diameter.

Thank you

7 0
3 years ago
Please help with this, I'm stuck.
photoshop1234 [79]

Answer:

18/5 = 3.6 (note that 3/2 = 1.5 )

the actual division is 3.387

Step-by-step explanation:

5 0
2 years ago
Other questions:
  • If you have 15 blocks and divide the blocks equally among 5 friends how many blocks does each friend receive
    8·1 answer
  • The legs of a right triangle are 12 cm and 16 cm. What is the length of the hypotenuse?
    5·2 answers
  • Kyle and Elijah are planning a road trip to California. Their car travels 3/4 of a mile per min If they did not stop driving, ho
    8·2 answers
  • A spool of ribbon holds 6.75 meters. A craft club buys 21 spools. What is the total cost if the ribbon sells for $2 per meter?
    10·2 answers
  • Which is bigger, one fourth of 16 or one third of 24?
    12·2 answers
  • Place commas correley in the numbers​
    9·1 answer
  • One of the legs of a right triangle measures 15 cm and the other leg measures 10 cm. Find the measure of the hypotenuse. If nece
    7·2 answers
  • Look at the following expression and tile model. White tiles are positive and gray tiles are negative.
    15·1 answer
  • In Mr. Johanessen's class, 1/4 of the students failed the final exam. Of the remaining students in the class, 1/3 scored an A. W
    8·1 answer
  • In a right triangle, one of the legs is 7 units, and the hypotenuse (the longest side) is 18 units. Find the length of the other
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!