Question: create an input file with the numbers shown below and then create an output file with java ? Polish Peasant Multiplication About It takes two

create an input file with the numbers shown below and then create an output file with java ?

Polish Peasant Multiplication

About

It takes two numbers, side by side. The left number is multiplied by 2 every time the right number is divided by 2.

50 30

100 15

200 7

400 3

800 1

Take out the numbers in the left side that corresponds to an even number to the right side, in this case 30 is the only even number available.

30

100 15

200 7

400 3

800 1

Add all the left side: This will equal to 1500.

Test the answer by multiplying the first two original numbers

50*30 = 1500

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!