Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions