I bought a new calculator at the Dollar Store and, sure enough, it’s defective. After some trial and error with it, I discovered that each digit in the display contained the same two pairs of elements (out of the seven elements labeled A to G below) that were somehow ‘cross-wired’. That is, if one element was called upon to illuminate, its partner would illuminate instead. If both were supposed to illuminate, neither would! For example, if A/D and B/F were the faulty pairs, the number 3 would simply display as F/G/C, as illustrated below.
Based on the illuminated elements for each digit given below, find the faulty pairs to then solve the following 3-digit by 2-digit multiplication:
| C/D | F/B/G/E/C | G/E/C |
X | | F/G/C/D | F/G/E/C/D |
F/E/C/D | F/G/C/D | F/G/E/C/D | F/E/C/D |
(In reply to
problems with computer program by Charlie)
Running the program gives the 153 that Robby offers as well as a 4 in the multiplier and one in the product.
That might offer you some clue as to the problem. I did look at the IF statements but they all seem to be "rounded off" with ENDIFs.
Um? Should the line:
IF tothad > maxhad THEN maxhad = tothad: numbmax = 1
be written as:
IF tothad > maxhad THEN
maxhad = tothad
numbmax = 1
ENDIF ?
|
Posted by brianjn
on 2009-02-18 22:42:30 |