Are you pressed for time and haven’t started working on your assignment yet? Would you like to buy an assignment? Use our custom writing services for better grades. Even if your deadline is approaching fast, our writers can handle your task right when you need it. Our writers will complete your order from scratch and make sure it’s completely unique.
Order a Similar Paper Order a Different Paper
In this project, you will demonstrate your mastery of the following competency:
- Write programs using object-oriented conventions in accordance with industry standard best practices
You work for Global Rain, a software engineering company that specializes in custom software design and development. As a junior software developer, you are part of a software development team at Global Rain that collaborates to create software solutions for entrepreneurs, businesses and government agencies around the world.
Your Global Rain software development team has been asked to develop a menu-driven system for the Luxury Ocean Cruise Outings company. This company coordinates cruise bookings for luxury ship owners and cruise lines. As a returning customer for Global Rain, Luxury Ocean Cruise Outings has requested a simple menu-based system to perform core functions that are essential to its daily operations.
Other developers on your team have made progress on this project and have already created different classes for the software application. Your supervisor has asked you to complete several tasks to meet the customerâ€™s needs.
The Luxury Ocean Cruise Outings company has provided Global Rain with a software specification document that details a menu-driven software application. Other developers on your software development team have already begun this project by creating the Ship, Cruise, Passenger, and Driver classes. You will modify the classes by including attributes and their proper data structures, writing methods to perform required functionality and behavior, and making sure that your program performs input validation and exception handling.
Before you get started with your assigned tasks, complete the following pre-work to understand your clientâ€™s needs, set up your development environment, and become familiar with the work that has already been completed. Refer to the Supporting Materials for relevant files to complete your pre-work.
- Review the specification document, which will provide you with an overview of your clientâ€™s needs. Pay special attention to the relationships between the systemâ€™s different components.
- Open the Virtual Lab by clicking on the link in the Virtual Lab Access module. Then open your IDE. Upload the package of .java class files into your IDE and compile the code. Although the program is not complete, it will compile without error. This will help you test your development environment and ensure it is ready to start coding.
- Read through the code for each class. You will get clear directions in the project guide on how to modify and complete the code. This will help you understand what code has been created, and may give you ideas for the methods you must complete to meet the software requirements.
- Once you have completed your pre-work, you are ready to begin your assigned tasks on the menu-driven software application. Follow the project guide in the Supporting Materials section, which will take you step-by-step through completing the software applicationâ€™s menu system.
What to Submit
To complete this project, you must submit the following:
Note: All class files must be submitted because the entire package of files is required for the application to run.
Driver.java Class File
Submit your modified Driver.java class file. Be sure to include in-line comments for all your changes and additions.
Cruise.java Class File
Submit your modified Cruise.java class file. Be sure to include in-line comments for all your changes and additions.
Ship.java Class File
Submit the Ship.java class file, even though you were not required to make changes to it for this project.
Passenger.java Class File
Submit the Passenger.java class file, even though you were not required to make changes to it for this project.
The following resource(s) may help support your work on the project:
Luxury Ocean Cruise Outings System Specification Document
Review the system specification document, provided by Luxury Ocean Cruise Outings, to complete the menu-driven software application.
Luxury.zip (Class Files)
Review the code in each class file to understand what code has been created and what code you will create. The Ship and Passenger classes have been fully coded and do not require changes. The Driver and Cruise classes have been partially coded and require changes. All classes are required for the Luxury Ocean Cruise Outings app.
Uploading Files to Eclipse Tutorial
You will write, test, and run each class file in an IDE. Review this tutorial to learn how to upload the zipped folder, which contains all your class files, into your IDE.
Downloading Files from Eclipse Tutorial
You will write, test, and run your class files using an IDE. Review this tutorial to learn how to save and export files from your IDE. Important: Do not change the names of any class files.
Project Three Guide
Follow this guide, which will take you step-by-step through creating the software applicationâ€™s menu for Luxury Ocean Cruise Outings.
The following rubric will be used to assess Project Three. Familiarize yourself with this document as you work on the project, and return to this rubric before you submit Project Three to make sure you’ve included everything you need to be successful.
In this activity, you will revisit the Paint program from Module Six. Your original program calculated the amount of paint needed, but depending on the width and height, that value could be a long decimal. Your program will better suit the needs of the user if it can calculate the number of cans needed as an integer value. For example, given that 1 gallon = 1 can of paint, we might expect the Paint program from Module Six to output:
Paint needed: 2.142857142857143 gallons
Cans needed: 3.0 can(s)
You might at first think that you could just cast the gallonsPaintNeeded variable from a double to an integer type. However, that would merely cut off the decimal portion of the value, resulting in an underestimate of the number of cans needed. You might also consider rounding the number, but that would not work for the sample output provided above since normal rounding rules would suggest 2.0 cans, an underestimate. So, the computational problem you are faced with is to calculate the number of cans and round up to the nearest whole number. In order to determine if that method for rounding up exists as part of one of Javaâ€™s core classes, we need to consult the documentation. There might be a single method that we can use or we might have to use more than one method.
For this assignment, you will complete the Paint program by adding code that calculates the number of cans of paint needed. Use the Uploading Files to Eclipse and the Downloading Files From Eclipse tutorials to help you with this project.
- Consult the official Java documentation for the Math class.
- Scroll to the Method Summary section of the Math class and review the methods and their descriptions. Look for a method that will help you.
- If a method looks promising, click on its name to see a more detailed description. Pay special attention to the argument(s) and the data type of the return value.
- Based on your review, select one or more methods from the Math class to use in your solution.
- When using a method from the Math class, use the syntax Math.methodname() when you implement the method. For example, if you decided to use the absolute value method, you would write something like: Math.abs().
- Open the Virtual Lab by clicking on the link in the Virtual Lab Access module. Then open your IDE and upload the Paint2.zip folder. Review the code for the Paint2.java class. Look for where it says //Complete this code block. Make sure the code you write does the following:
- Calculates the number of paint cans needed to paint the wall
- Rounds up to the nearest integer (use the test cases below to check your work)
- Outputs the number of cans needed for the user
|Paint needed: 2.142857142857143 gallons
Cans needed: 3.0 can(s)
|Paint needed: 0.48857142857142855 gallons
Cans needed: 1.0 can(s)
|Paint needed: 2.0 gallons
Cans needed: 2.0 can(s)
|Paint needed: 1.5675428571428571 gallons
Cans needed: 2.0 can(s)
Any login information will be provided when needed.