well guys here is the infamous solution to the problem:

    double getSalePrice() {
        // From the sale price computed from Car class,
        // subtract the manufacturerDiscount.
        double discPrice = super.getSalePrice() *
                ((double)(100 - manufacturerDiscount) / (double)100);

        return (discPrice);

of course you know that the discount is 30 not 0.3

lots a luck...

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to