Design and create a river crossing class to represent the river crossing with the appropriate…

Your task as a software developer is to write a Command Line Interface (CLI) application RiverCrossingCLI simulating the river crossing. The farmer (player) can then work out the steps required to safely move all items to the other side of the river. In Part 1 you will need to do two tasks: 1. Your first task is to design and create a RiverCrossing class to represent the river crossing with the appropriate attributes and methods. Assume river flows west to east (left to right of the page), farmer moves north (straight up) and requires to transport items from the South Bank to North Bank of the river. Design class so it can be re-used in Part 2 of the assignment, the GUI version of River Crossing. (a) Write the RiverCrossing constructor. (b) Use a boolean (or integer) array elements as place holders for the Farmer’s items (boat, cabbage, goat, wolf). False value to represent an item located on the South Bank and True on the North Bank of river. (c) Write a row() method to transport an item from one Bank to another Bank. (d) Write get() methods to return string with inventory (a list of all items, including the boat) located on the North Bank and another get() method for the South Bank. (e) Write other methods as required.

PLACE YOUR ORDER TO GET STARTEDThe post Design and create a river crossing class to represent the river crossing with the appropriate… appeared first on Essay Gem.

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"