Question
Write an abstract class called Vacation includes a budget and a destination. It has an abstract method returning by how much the vacation is over
Write an abstract class called Vacation includes a budget and a destination. It has an abstract method returning by how much the vacation is over or under budget. This class has two non-abstract subclasses:
All-Inclusive Vacation
brand (such as ClubMed, Delta Vacations, etc)
a rating (you can use # of stars)
price
Piecemeal Vacation
set of items (hotel, meal, airfare, etc)
set of corresponding costs (hotel cost, meal cost, airfare cost, etc.)
You need to write a test class to test all these classes and methods in each. You will need to start by writing the pseudocode for your programs, then code the solution and test your solution.
Break the problem down and write the pseudocode:
Break the problem statement into parts to fully understand what is expected as input, output and processes in your code. Write down all the variables you will need from the problem statement. Once you have broken down the problem, start writing your pseudocode.
Writing the pseudocode may take a while and several iterations to fully get the solution complete. Walk through the problem and your pseudocode as if the program is running and you are the user. Make sure your input prompts and output messages are clear.
Now make sure that your code is the best it can be. Check your formatting, prompts to the user, and make sure they are clear and help the user interact with your code in an easy manner.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started