subject

Aschool has 100 lockers and 100 students. all lockers are closed on the first day of school. as the students enter, the first student, denoted s1, opens every locker. then the second student, s2, begins with the second locker, denoted l2, and closes every other locker. student s3 begins with the third locker and changes every third locker (closes it if it was open, and opens it if it was closed). student s4 begins with locker l4 and changes every fourth locker. student s5 starts with l5 and changes every fifth locker, and so on, until student s100 changes l100. after all the students have passed through the building and changed the lockers, which lockers are open? write a program to find your answer and display all open locker numbers separated by exactly one space.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:00, yolo1430
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
image
Computers and Technology, 22.06.2019 22:40, shaylawaldo11
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
image
Computers and Technology, 24.06.2019 00:00, babysisjessica1
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
image
Computers and Technology, 24.06.2019 09:30, nialphonsa
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
You know the right answer?
Aschool has 100 lockers and 100 students. all lockers are closed on the first day of school. as the...

Questions in other subjects: