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
Determine the following probability
Masja [62]
Probability is 7/8. Sorry if I got it wrong, but since no others are answering, thought I might give it a go.
7 0
2 years ago
Read 2 more answers
What is the volume of the cone to the nearest whole number?<br><br><br>HELP PLZ
goldfiish [28.3K]

Answer:

167.467mm^3

Step-by-step explanation:

Volume of cone:1/3hpir^2

1/3(10)(pi)(4)^2

=160/3(pi)

(Pi=3.14)

160/3pi=167.467mm^3

4 0
3 years ago
the lenght of the floor is 32 m longer than its width and there is greater than 200 square meters. you will cover the floor comp
MrRa [10]
Let’s assume the width of the floor is x and the area is a

To figure out the dimensions we need to figure out the value of the variable (x)

This means that the length is xm+32m (the m is for metres) and that the area is a>200m2

Because it says what is the possible dimensions let make the area 201m2

The formula for the area of a rectangle is length times width so the equation we use to figure out the value of x


201=x+x+32

So let’s collect like terms and solve from there
201=2x+32
201-32=2x+32-32
169=2x
169/2=2x/2
84.5=x

Now that we know the value of x is 84.5 we can figure out the length is 116.5m and the width is 84.5m

Therefore the dimensions of the floor is 116.5m by 84.5m

4 0
3 years ago
How long is the ladder
kodGreya [7K]
You asked this question twice but I am pretty sure that we would need to know at what height the ladder is touching the house to solve this.
7 0
3 years ago
Quadratic equations<br> solve x^2-7X-34=10
astraxan [27]
I got x=11 and x= negative 4 hope dis helped
6 0
3 years ago
Other questions:
  • A polynomial that has a degree of 2 is called ___.
    8·2 answers
  • ∠ABD is formed by a tangent and a secant intersecting outside of a circle. If minor arc AC = 78° and minor arc CD = 124°, what i
    7·2 answers
  • Given a∥b , and c is not parallel to a or b, which statements must be true?
    9·2 answers
  • Please provide step by step explanation thanks
    13·2 answers
  • Abby works in the sales department. This month the company is offering a 3-week paid vacation to every employee who sells 230% o
    14·1 answer
  • Simplify the expression. 6w+8−4w−1
    5·1 answer
  • Identify the domain of y = 3/x + 2).
    5·1 answer
  • Tree A is 5 feet tall and grows at a rate of 1.5 feet per year. The table shows the height h (in feet) of Tree B after x years.
    7·1 answer
  • Pls help, I suck at percentage lol
    15·1 answer
  • SOMEONE EASE ANSWER NUMBER 4?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!