|
[Home] [Puzzles & Projects] [Delphi Techniques] [Math Topics] [Library] [Utilities] |
|
Problem DescriptionGiven four sets of numbers with four numbers in each set, write an equation that is satisfied by each set of numbers. The numbers are labeled A,B,C,D. Operations may include +, -, ×, and ÷. Any letter may appear in any location in the equation. Equations will have the form (letter operation letter) operation letter = letter, for example (A+B)×D=C, or (D-C) ÷ A=B. Parentheses surround the first two letters so operations can always be performed from left to right. Background & TechniquesNotes for non-programmers:This program is loosely based on a problem type included in the Mensa Number Puzzles, Harold Gale, Carton Books. It generates random problems within difficulty constraints set by the user. The Options button can be used to modify the included init file, EquSearch.ini, to control several variables:
The "reward" screen as distributed shows a default image and plays a "Cheers.wav" audio file when displayed. If additional .wav files are included in the same folder as the program, one is selected randomly to accompany the reward screen. If any .jpg image files are included in the program file, one is randomly selected to display in the reward screen. Non-programmers are welcome to read on, but may want to jump to bottom of this page to download the executable program now.
Notes for programmers:There are a number of Delphi features used here that may be new to beginning or intermediate programmers, Here are some examples:
That brief outline that may be enough to get you started, so let's go!. Running/Exploring the ProgramSuggestions for Further Explorations
|
[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 2000-2009, Gary Darby
All rights reserved.
|