Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Leave a blank line in your answer at this point.
  2. The derived class has one private double data member mounting_cost (the cost to mount and balance a winter tire). The derived class has a constructor with four parameters mk, cst, mntg_cst, and sz. The winter tire cost is defaulted to $165.00. The mounting cost is defaulted to $26.00 and is used to set the mounting_cost data member in the constructor.
  3. The derived class has a void member function set_price which is virtual with no parameters, and which sets the price data member by adding the mounting_cost to the 1.04 times the cost. The derived class has a friend overloaded << operator for winter_tire objects, with the non-ostream parameter named wt. This operation outputs the make, size, and the price on one line, labeled. With formatting for precision only, an output line from this overloaded operator must look exactly like*:
  4. Michelin winter tire size 2605016, price mounted and balanced is $248.56
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement