I really hope u guys will be able to help me I'm trying to make a program on inheritance and arrays Amma just right the question I've tried it but I can't get the displays correct .......
create a base class called package with instance variables (packageId, weight, costperounce,senderName,senderaddress,city,recipientName, recipient city ,recipient parish). And here's what's I'm suppose to do
Use inheritance hierarchy to create an application that displays the recipients and senders addresses information. And calculate the transport cost for several packages (weight*costperounce). The application should contain an array of package objects of class TwoDayPackage and overnight Package. The transport fees for the TwoDayPackage includes a flat rate of $500.00 added to the basic calculation whilst the OverNightPackage includes a flat rate of $1500.00 added to the costperounce multiplied by the weight of the package. Loop through the array to process the package polymorphically.
For each package use properties to obtain the address information of the sender a d the recipient then print the two addresses as they would spare on a mailing labels also. All each package's cost method and print the result. Keep track of the total shipping cost for all packages in the array and display the total when the loop terminates
Plz help me I've at it for almost a week now and help will be appreciated