Question: USE PYTHON 3 ONLY! Douglas MacArthur was a longtime officer in the U. S. Army. He served during WWI, WWII and the Korean War. He

USE PYTHON 3 ONLY!

Douglas MacArthur was a longtime officer in the U. S. Army. He served during WWI, WWII and the Korean War. He was very famous, especially in Japan after WWII. This led many visitors to expect miracles from him. He commonly used a math trick he called the old number 115.

First he would turn his back so he could not see what his visitor wrote down.

Then he had the person write:

The month of their birth (example: March is 3). Double the number.

Add 5.

Multiply by 50.

Add your age.

Subtract 365.

At this point he would ask them to tell him their total. In his head he added 115. He then knew the persons age by considering the lowest two digits. He also knew the birth month based on the rest of the number. It worked every time.

Your assignment is to ask a user for their birth month and their age. Go through the formula and output their age and birth month based on the calculated number. An example would be.

You are 19 and born in May.

When this is completed make your program repeatedly go through the same process until the user enters a zero for the birth month.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!