Micro Adventure

Micro Adventure is the title of a series of books for young adult readers, published by Scholastic, Inc. during the 1980s. Created by Eileen Buckholtz and Ruth Glick, the YA series combined adventure stories with computer activities.
 The books are noted for the inclusion of short BASIC type-in programs related to the plot of the story that the reader could type into their computers, and also for the use of second-person narration (rather like the Choose Your Own Adventure series, though unlike those, Micro Adventure storylines could not be influenced by the decisions of the reader). The combination of these two elements made the Micro Adventure books something of an immersion experience.
Through the second-person narration, the reader took the part of Orion, a computer expert and agent for the Adventure Connection Team, and followed the action in the continuing struggle against ACT’s nemesis, BRUTE (Bureau of Random Unlawful Terror and Evil).
The plots generally resembled those typically found in other works of the secret agent/adventure genre, ranging from sabotage aboard a space station to android doubles of the President of the United States, but stand out for their clever twists and lack of "dumbing down" often found in similar juvenile literature.
The programs themselves were actually quite impressive, some even being simple “shoot-em-up” games, yet were all designed to be small (none were over 2K in file size, a must given the limitations of some personal computers available at the time, such as the TI-99/4A) and easily typed in by even the most novice programmer. Instructions were included on how to "tweak" the programs to make them run on almost any popular home computer of the time.
As a bonus, an appendix to each book gave step-by-step analyses of each of the programs in that particular book as a method of teaching simple programming theory and construction.
In 2017, Auri Rahimzadeh created a website to read the books and enter their programs in an on-page emulator.
List of titles.
Micro Adventure series
Magic Micro series