Task 1. Arrays solution. Design a program for a Cruise Ship with twelve cabins using code...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) 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)
Expert Answer:
Answer rating: 100% (QA)
class Ship String nameyear public Ship thisname thisyear public ShipString name String year thisname ... View the full answer
Related Book For
Entrepreneurship Successfully Launching New Ventures
ISBN: 978-0133797190
5th edition
Authors: Bruce R. Barringer, R. Duane Ireland
Posted Date:
Students also viewed these programming questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Find the maximum of (x, y, z) = xyz subject to the constraint g(x, y, z) = 2x + y + 4z = 1.
-
In Exercise 1.49 on page 16, you used simple random sampling to obtain a sample of 10 firms from Fortune Magazine's list of "The International 500." In E 49 Each year, Fortune Magazine publishes an...
-
Reconsider Prob. 4.3-6. Now use the given information and the theory of the simplex method to identify a system of three constraint boundary equations (in x1, x2, x3) whose simultaneous solution must...
-
Refer to the information in Exercise 16-12. Prepare a process cost summary using the FIFO method. (Round cost per equivalent unit calculations to two decimal places.) Data From Exercise 16-12 The...
-
Brecker Inc., a greeting card company, had the following statements prepared as of December 31, 2014. Additional information: 1. Dividends in the amount of $6,000 were declared and paid during 2014....
-
What is the difference between a Relation in an RDBMS and a Class in an OODBMS? Are they interchangeable? This question is asking if a relation within a Relational Database Management System is the...
-
Charles Whyte commenced business on May 1 2019, making up his accounts to September 30 annually. The statement of the Profit or Loss Account for the first 17 months ended September 30,2020 is as...
-
Just - in - Time Inventories Nevada Manufacturing Company uses the perpetual inventory system and plans to use raw material costing $ 2 , 1 0 0 , 0 0 0 in making its products. Nevada will operate its...
-
The collaborative style for handling conflict has a _________________ concern for self and a _________________ concern for others.
-
__________________ organization structures can be classified as weak, balanced, or strong, depending on the relative level of influence between the functional manager and the project manager. a. Silo...
-
Under which circumstances might a project manager or sponsor retain the right to make a project decision?
-
You are the project manager overseeing creation of a new website for a nonprofit food bank. What deliverables will your project produce? What value and/or benefits are you providing to your client?
-
The project sponsors responsibilities during the executing stage include: a. reviewing and signing the project charter b. signing off on the detailed project plan c. ensuring communications with key...
-
The following figures are taken from the 2003 financial statements of McDonalds and Wendys. Figures are in million dollars. McDonald's Wendy's Inventory $ 120.0 $ 38.9 Revenue 17,054.4 3,077.1 Cost...
-
What are conversion costs? What are prime costs?
-
What factors favor older entrepreneurs as opposed to young entrepreneurs?
-
What is a brand? Provide an example of a brand that you buy frequently and describe the mental image that pops into your mind when you hear or see the brands name.
-
What are the three most important insights you gained from studying this feature? Which of these insights surprised you, and why?
-
Smart Manufacturing Systems Pty Ltds accountant recently prepared the following data from the companys accounting records for the year ended 30 June 2019. Factory overhead is applied at the rate of...
-
During the year ended 30 June 2019, Beautiful Bottles Pty Ltd incurred the following costs in connection with its production activities. Required (a) Calculate the relationship between factory...
-
Telecommunications company Toronto Ltd signed a 15year deal to sell capacity on its cable network to a rival company for $200 million. The deal was completed on the last day of Toronto Ltds financial...
Study smarter with the SolutionInn App