Extra Credit: 5 points © LS Code a 2D array that can store…
Extra Credit: 5 points © LS Code a 2D array that can store the cruiseFares for the 3 different cabin types on the 24 ships in the Royal Caribbean Cruise Line.© LS Hint: The cabins belong to the ships.© LS //© LS Declare the array.© LS //© LS Code the outer for header scoping ship as the loop-control © LS //© LS variable. Test to the array’s length variable.© LS { //© LS Code the inner for header scoping cabin as the loop- © LS //© LS control variable. Test to the array’s length variable © LS //© LS for each column.© LS { System.out.printf(“%nEnter the fare for cabin type %d on ship ” + “#%d: “, cabin + 1, ship + 1); //© LS }//© LS END inner for © LS }//© LS END outer for © LS © Linda Shepherd