Create an Account

Already have account?

Forgot Your Password ?

Home / Questions / Write an java program to show How can the soldiers get across the river and leave the boys in..

Write an java program to show How can the soldiers get across the river and leave the boys in..

A group of 25 soldiers must cross a deep river with nobridge. They notice two 12-year-old boys playing in a boat by the shore. The boat can only hold two boys or one soldier. A) Write an java program to show How can the soldiers get across the river and leave the boys in joint possession of the boat? B) Your code should Print out the steps and how many times does the boat pass from shore to shore in your algorithm? C) Use OOP concepts (for example build class for: boat, boy, soldier, river)

Apr 09 2020 View more View Less

Answer (Solved)

question Subscribe To Get Solution

Related Questions