This scenario could serve as a model for what could be programed into a virtual simulation.
1630s, "public notice," from Late Latin programma "proclamation, edict," from Greek programma "a written public notice," from stem of prographein "to write publicly," from pro- "forth" (see pro-) + graphein "to write" (see -graphy).
General sense of "a definite plan or scheme" is recorded from 1837. Meaning "list of pieces at a concert, playbill" first recorded 1805 and retains the original sense. That of "objects or events suggested by music" is from 1854. Sense of "broadcasting presentation" is from 1923. Computer sense (noun and verb) is from 1945. Spelling programme, established in Britain, is from French in modern use and began to be used early 19c., originally especially in the "playbill" sense. Program music attested from 1877.
1889, "write program notes;" 1896, "arrange according to program," from program (n.). Of computers from 1945. From 1963 in the figurative sense of "to train to behave in a predetermined way." Related: Programmed; programming.
To train; predispose by rigorous teaching, condition: He's programmed to be polite to old ladies and all (1966+ fr computers)