 Danny Dunn and the Homework Machine

Danny Dunn and the Homework Machine is the third novel in the "Danny Dunn" series of juvenile science fiction/adventure books written by Raymond Abrashkin and Jay Williams.The book is "about a boy who invents a machine to do his homework for him only to be tricked into doing more with his spare time".