Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(Package Inheritance Hierarchy) Package-delivery services, such as FedEx , DHL a

ID: 3529941 • Letter: #

Question

(Package Inheritance Hierarchy) Package-delivery services, such as FedEx , DHL and UPS, offer a number of different shipping options, each with specific costs associated. Create an inheritance hierarchy to represent various types of packages. Use Package as the base class of the hierarchy, then include classes TwoDayPackage and OvernightPackage that derive from Package. Base class Package should include data members representing the name, address, city, state and ZIP code for both the sender and the recipient of the package, in addition to data members that store the weight (in ounces) and cost per ounce to ship the package. Packages constructor should initialize these data members. Ensure that the weight and cost per ounce contain positive values. Package should provide a public member function calculateCost that returns a double indicating the cost associated with shipping the package. Package

Explanation / Answer

thanks for reposting. here is links to files as is. Tell me if you still have trouble and I'll modifiy them if needs be


https://www.dropbox.com/sh/kud4cdjgfp9zna8/3z5WDoHmW2