Addition Puzzler Write a program that generates random algebraic addition puzzles, like the one below. How many numbers?
Posted: Fri Apr 29, 2022 7:10 am
PLEASE COMMENT<< Your code so i can UNDERSTAND WHATS HAPPENING, follow the directions EXPICITLY. thank you, too many helpers dont read and do it wrong and i cannot follow with NO COMMENTS!!
Addition Puzzler Write a program that generates random algebraic addition puzzles, like the one below. How many numbers? 3 How many digits wide? 5 How many variables? 2 How many digits revealed? 2 J777B J22BJ 2BJ2J BBJ2B B = 3, J = 0 Prompt the user for four integer values. How many numbers? - This is how many numbers will be added together to get the sum • How many digits wide ? - This is how many digits will be in each of those numbers, as well as the sum... so it doesn't count if the sum is longer than this. • How many variables? - How many of the digits in the problem (0-9) will be replaced with random capitalized letter variables. In the example above, these became 'B' and 'J'. • How many digits revealed? - Apart from the digits that are shown as variables, how many additional digits are allowed, which will also be shown to help people solve the puzzles. In the example above, these became '2' and '7" This is effectively a "search" program. Using the example above, I know I'll need to find three 5-digit numbers whose sum is a 5-digit number (or less if you lead it with zeros, I guess), but all of those numbers (including the sum) can only be constructed from four different digits (0-9) because 2 will be hidden as variables and 2 will be revealed.
Addition Puzzler Write a program that generates random algebraic addition puzzles, like the one below. How many numbers? 3 How many digits wide? 5 How many variables? 2 How many digits revealed? 2 J777B J22BJ 2BJ2J BBJ2B B = 3, J = 0 Prompt the user for four integer values. How many numbers? - This is how many numbers will be added together to get the sum • How many digits wide ? - This is how many digits will be in each of those numbers, as well as the sum... so it doesn't count if the sum is longer than this. • How many variables? - How many of the digits in the problem (0-9) will be replaced with random capitalized letter variables. In the example above, these became 'B' and 'J'. • How many digits revealed? - Apart from the digits that are shown as variables, how many additional digits are allowed, which will also be shown to help people solve the puzzles. In the example above, these became '2' and '7" This is effectively a "search" program. Using the example above, I know I'll need to find three 5-digit numbers whose sum is a 5-digit number (or less if you lead it with zeros, I guess), but all of those numbers (including the sum) can only be constructed from four different digits (0-9) because 2 will be hidden as variables and 2 will be revealed.