Task 1. Arrayssolution. Design a program for a Cruise Ship with…
Question Answered step-by-step Task 1. Arrayssolution. Design a program for a Cruise Ship with… Task 1. Arrayssolution. Design a program for a Cruise Ship with twelve cabins. Start by checking that the code works. Once thebasic code runs, put the code for’Views All cabins’ and ‘Adds customer to cabin’, into separate procedures, and test it works. You can build up your test cases as you develop your program (see testing below). Then add a menu system which will allow the user to choose what they want to select. Enter an ‘A’ to add a customer to a cabin, and a ‘V’ to view all cabins. Implement each as method. When an ‘A’ is pressed, it should do the Add method; a ‘V’ should do the Vieew method. One by one, add extra methodsto do each of the following. The user should be able to choose from the menu what the program does. E: Display Empty cabins D: Delete customer from cabin F: Find cabin from cutomer name S: Store program data into file L: Load program data from file O: View passengersOrdered alphabetically by name. Task 2. Classes solution. secondverrsion of the Cruise Ship program using an array of Cabin objects. Createa class called Cabin and anothr class called Passenger. Each cabinshould hold up to 3 pasengers with the following additional information. i. First Name. ii. Surname. Can you please code this is Simple Java and explain all the code as I am new to Java Programming Computer Science Engineering & Technology Java Programming COMPUTER S 300095 Share QuestionEmailCopy link Comments (0)


