April 2026
Intermediate
399 pages
11h 38m
English
In this more extensive example, we assume that you want to program a simple guessing game. The program selects a few questions at random from a pool of questions. It asks the questions and provides several multiple-choice answers marked with the letters a, b, c, and so on to choose from. The player enters a character string (e.g., ad if the first and fourth answers are correct), and the program analyzes the answer and asks the next question.
This section is primarily concerned with organizing the classes required for the program. You’re still inexperienced when it comes to class design, so you ask an AI tool for help. In the first, very detailed prompt, you outline the basic functions of the program ...
Read now
Unlock full access