Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

Describe the types of power that effective leaders employ

Answered: 1 week ago

Question

Describe how leadership styles should be adapted to the situation

Answered: 1 week ago