Question: Problem 1: There is a popular myth about the mathematician who invented the chess. The local ruler was so pleased with the invention that he
Problem 1: There is a popular myth about the mathematician who invented the chess. The local ruler was so pleased with the invention that he offered the inventor a great reward in gold. The inventor suggested an alternative reward: he would get one grain of wheat on the first quarter of the chess board, two grains on the second quarter, four grains on the third quarter, eight grains on the fourth quarter, and son on, doubling the number of grains each time. The ruler was mad thinking that the inventor was underestimating the ruler's golden gift by asking for wheat instead!Whether the story was true or not, the numbers do not lie. Let's check using a python program the size of the wheat gift (knowing that the chessboard has 64 squares.) Write a python program to do the following: A. How many total grains of wheat did the ruler have to pay the inventor? B. A wheat grain weighs about 50mg. How much did the wheat weigh in tons (a ton is 1000 kilos)? C. If Ikilogram of wheat costs S5. How much would that wheat cost nowadays? (convert the number to billions of dollars and separate the output with commas between each thousand -for exampl a sample output should look like S 5,123,4323.234 billion. D Which is more? All the gold on earth or the wheat git
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
