Question: Task 1. Arrays solution. Design a program for a Cruise Ship with twelve cabins using code like the code provided near the end of

Task 1. Arrays solution. Design a program for a Cruise Ship with twelve cabins using code like the code provided near the end of your notes. Start by checking that the code works. Once the basic 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 a method. When an 'A' is pressed, it should do the Add method; a 'V' should do the View method. One by one, add extra methods to 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 customer name S: Store program data into file L: Load program data from file O! 0: View passengers Ordered alphabetically by name. (Implement your own sort algorithm)
Step by Step Solution
3.42 Rating (152 Votes )
There are 3 Steps involved in it
class Ship String nameyear public Ship thisname thisyear public ShipString name String year thisname ... View full answer
Get step-by-step solutions from verified subject matter experts
