Question: write a JAVA program (not allowed to import anything)/where rabbit and elephant are competing on a track represented by array [-1,-2,3,0,1,-1,0,3,0,0,0,0) positive numbers are inclines,

write a JAVA program (not allowed to import anything)/where rabbit and elephant are competing on a track represented by array [-1,-2,3,0,1,-1,0,3,0,0,0,0) positive numbers are inclines, negative numbers are downwards slopes and zero are flat roadthey are competing over 10 day period.they both start at position 1 .rabbit sits still 50% of the days 20% of the days rabbit moves 2 position,30% of the days rabbit moves l positions in array,Elephant walks 2 positions in array a day.(use int randomNb-(int) (Math.random ()*100); if (randomNb
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
