What's the Name of That Book??? discussion

This topic is about
Sleepwalking
SOLVED: Children's/YA
>
Solved: Spoilers inside but marked: Last one for now: A Brave New world type story, quite short about a town where everyone is microchipped and given a coloured drink which settles them into a useless stupor [s]
date
newest »

Spoiler, maybe: They go to this person's bedroom and there is a computer and the computer tests each of them giving them results and the drugs. One of them drinks it to the chagrin of his companions. Then still dopey from the drugs they end up being chased by the police and the one who drank the coloured liquid is killed.
Spoilers, for real:
The other two climb up a tower at the end of the book, and have to put a password into the computer, which is Rumpelstiltskin because no one from the town would have been able to answer it, because they had no interest in stories.
Sorry for the numerous posts.