What is the invention of chess worth?
There is a popular myth about the man who invented 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 square of the chess board, two grains on the second square, four on the third, eight on the fourth, etc., doubling the number of grains each time. The ruler saw that this must be a much better deal for him, and he accepted. The board has 64 squares. Write a program to determine the following:
(a) How many total grains of wheat did the ruler have to pay the inventor?
(b) A wheat grain weighs approximately 50 mg. How much did the wheat weigh?
(c) Pick a region (state, country, etc.) and determine how deeply that region would be covered with that quantity of wheat. Prompt for the area of the region and then output the depth, including the units you use.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.