--- title: "So You Want to Write a Program! (Part II)" type: "article" slug: "so-you-want-to-write-a-program-part-ii" url: "http://localhost/article/so-you-want-to-write-a-program-part-ii/" markdown_url: "http://localhost/article/so-you-want-to-write-a-program-part-ii.md" published_at: "2026-03-12T18:28:14+00:00" modified_at: "2026-03-12T18:28:14+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Second installment of the structured programming tutorial. Provides BASIC code for the menu function (lines 5–680) featuring arrow-key navigation and GOSUB dispatch to sub-functions, followed by the New List dimension function (lines 1000–1990) for initializing a name/address data structure. The listing is intended as a practical model for well-structured BASIC program design." category: - name: "SMUG Bytes" slug: "smug-bytes" taxonomy: "category" url: "http://localhost/category/periodicals/smug-bytes/" post_tag: - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Bill Heberlein" slug: "bill-heberlein" taxonomy: "indiv" url: "http://localhost/indiv/bill-heberlein/" publication_r: id: 37935 title: "SMUG Bytes" type: "periodical" url: "http://localhost/periodical/smug-bytes/" authors_r: - name: "Bill Heberlein" slug: "bill-heberlein" taxonomy: "indiv" url: "http://localhost/indiv/bill-heberlein/" volume: "5" issue: "1" issues_articles: - id: 50219 title: "SMUG Bytes v5 n1" type: "issue" url: "http://localhost/issue/smug-bytes-v5-n1/" pages: "2" pubdate: "January 1988" archive_link: false --- # So You Want to Write a Program! (Part II) Second installment of the structured programming tutorial. Provides BASIC code for the menu function (lines 5–680) featuring arrow-key navigation and GOSUB dispatch to sub-functions, followed by the New List dimension function (lines 1000–1990) for initializing a name/address data structure. The listing is intended as a practical model for well-structured BASIC program design.