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
A weight clinic recorded the weight lost (in pounds) by each client of a weight control clinic during the last year, and got the
borishaifa [10]

Answer:

Class interval ____, Frequency _ C/frequency

1 - 10 ____________ 1 _________ 1

11 - 20 ___________ 4 _________ 5

20 - 30 __________ 6 _________ 11

31 - 40 ___________3 _________ 14

41 - 50 ___________ 1 _________ 15

51 - 60 ___________ 1 _________ 16

Step-by-step explanation:

Given the data :

35, 26, 31, 17, 46, 30, 28, 21, 26, 34, 15, 27, 7, 18, 16, 57

Class interval ____, Frequency _ C/frequency

1 - 10 ____________ 1 _________ 1

11 - 20 ___________ 4 _________ 5

20 - 30 __________ 6 _________ 11

31 - 40 ___________3 _________ 14

41 - 50 ___________ 1 _________ 15

51 - 60 ___________ 1 _________ 16

The next to highest frequency group has a frequency of 4 and the highest frequency of 6

Total frequency, n = (1 + 4 + 6 + 3 + 1 + 1) = 16

5 0
3 years ago
Please help! Please help!! Please help!!!​
klasskru [66]

Answer:

36 is the answer to the questions

4 0
1 year ago
HELPP PLEASE
sasho [114]

Answer:

3 a 20 - class yoga package for 260$

3 0
3 years ago
MARK AS BRAINLEST FOR THE CORRECT ANSWER PLUS 13 POINTS
marishachu [46]

Answer:

correct  simulations of Tom’s scenario.

Step-by-step explanation:

8 0
3 years ago
Using the 3 functions below, make the desired transformation(s) to the correct function and describe the transformation(s). Writ
Eduardwww [97]

Answer:

The transformation of g(x) to k(x) consists in a vertical translation. The new equation is k(x) = -12\cdot x-6.

Step-by-step explanation:

Let g(x) = -12\cdot x - 3. We proceed to make the required transformations on g(x), which consists in one vertical translation, 3 units in the -y direction. That is to say:

k(x) = g(x) - 3 (1)

k(x) = (-12\cdot x - 3) - 3

k(x) = -12\cdot x-6

Then, the transformation of g(x) to k(x) consists in a vertical translation. The new equation is k(x) = -12\cdot x-6.

5 0
3 years ago
Other questions:
  • Identify the two tables which represent quadratic relationships
    8·1 answer
  • What are the solutions of 3x2 - x + 4 =
    9·1 answer
  • 2x=3y-1
    7·1 answer
  • An oblique prism has a base area of 3x square units.
    13·1 answer
  • If dave runs 1.8 kilometers in 15 minutes , what is his average rate
    7·1 answer
  • *PLEASE ANSWER, DIFFICULT QUESTION, ASAP* An ice cream machine offers three flavors: vanilla, chocolate, and strawberry. Each fl
    5·1 answer
  • What percent is 40% of 120% of x?
    9·2 answers
  • A number cube labeled 1 to 6 is rolled 450 times. Which is the best prediction for the number of times that the number cube will
    8·1 answer
  • PLEASE SHOW ALL THE STEPS THAT YOU USE TO SOLVE THIS PROBLEM
    13·1 answer
  • Scores on a graduate school entrance exam follow a normal distribution with a mean of 560 and a standard deviation of 90. What i
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!