C++ PROGRAM(Package-delivery)
Write a base class,Package. This class represents a package, it shouldcontain its weight in kilos and the cost per kilo to ship the package. It should also have a public member function,calculateCost(), that calculates the cost for the package to ship. This class’ constructor should accept values to initialize its weight and cost per kilo.Package’s calculateCost()should return adoubleby multiplying its weight by the cost per kilo.
Sample Input
1 5 80 150 80
Sample Output
1 400.00 550.00 800.00
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here