Write an abstract superclass encapsulating a vacation

Assignment Help Programming Languages
Reference no: EM131317796

Write an abstract superclass encapsulating a vacation: A vacation has two attributes: 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:

One encapsulating an all-inclusive vacation; this subclass has three additional attributes: a brand (for instance ClubMed); a rating, expressed as a number of stars; and a price.

The other encapsulating a vacation bought piece meal; this subclass has two additional attributes: a set of items (hotel, meal,airfate, ...), and a set of corresponding costs.

You also need to a client class to test these two classes.

Turn in the Vacation, AllInclusiveVacation, PieceMealVacation, VacationClient java and class files and screen shots of output.

Make sure each class has the proper documentation at the top and a documentation block before the class header line.

Reference no: EM131317796

Questions Cloud

Implement algorithms for sorting in python : MCD4710 Algorithmic Problem Solving - write a Python program similar to the one from Part A but sort by the total medal count instead. So instead of sorting by the number of gold medals that each team won, this time it should be sorted by the total..
Create an application the will calculate your total pay : Create an application the will calculate your total pay for the number of days worked. Number of days worked can be from 1 to 30 days.
What acceleration factor does 175 ?c present : What acceleration factor does 175 ?C present? Temperatures are junction temperatures, and typical values are 55 ?C for consumer and 85 ?C for industrial electronics.
Describe unique aspects of revenue recognition : Insurance industry-specific financial ratios are usually prepared from financial statements prepared under what standards?
Write an abstract superclass encapsulating a vacation : Write an abstract superclass encapsulating a vacation: A vacation has two attributes: a budget and a destination. It has an abstract method returning by how much the vacation is over or under budget.
Difference between gaap reporting and sap reporting : For an insurance company, describe the difference between GAAP reporting and SAP reporting of deferred policy acquisition costs.
Create a detailed uml class diagram : Create a detailed UML class diagram, listing and explaining all class variables, accessors, mutators, special purpose methods, and constructors associated to each data definition class.
Critical analysis of the effectiveness of the corporation : Students are required to prepare a comprehensive report directed to an Australian ASX Top 100 listed corporation detailing a critical analysis of the effectiveness of the corporation to meet the obligations of the conceptual framework of accountin..
Determine the percentage of total revenue a firm has : Explain how the publication Financial Analysis of the Motor Carrier Industry could be used to determine the percentage of total revenue a firm has in relation to similar trucking firms.

Reviews

Write a Review

 

Programming Languages Questions & Answers

  Does the standard output of this script get sent to stdout

Is the visible output of this script, the text 'Hello'?

  Compute the area of a circle

PROGRAM 01 Compute the area of a circle. The user must enter the radius of the circle. Use the following formula for area A = 3.14 R2

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Design a program that accepts a players team number

The Midville Park District maintains five soccer teams, as shown in the table. Design a program that accepts a player's team number and displays the player's team name

  Write program to accept a list of student-s name

Write a program that will accepts a list of student's name, individual scores for quiz1, quiz2 and quiz3. Your program should then compute for the average of 3 quizzes.

  C# program to encrypt the letters

Consider this, the word is FEATHER. Remove duplicate letters, making FEATHR, and append the rest of the letters of the alphabet in reverse order.

  Write a function that returns the nth fibonacci value

Write the function delete_first(a, obj) that deletes from a only its first item that is equal to obj, if any. The function returns the modified array.

  Design and implement a web page named esp.html

Design and implement a Web page named esp.html that allows the user to conduct an ESP test.

  Display the main menu in a loop

CPCS202 - You need to display the main menu in a loop! Why? Because after the customer makes their choices, the menu should appear again. The customer can then exit the system or perform other services.

  Deisgn driver to test implementation elements to tree

Deisgn a driver to test your implementation. Add various elements to the tree, and then display elements in sorted order. Also, display minimum and maximum element.

  Write program that merges two files

The first programming project involves writing a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order.

  Program to read list up to hundred addresses

efine a class called address_t with members for the four integers. Your program should read a list up to 100 addresses and nicknames terminated by a sentinel address of all zeros and nickname.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd