Alright fellow c++ programmers. I am having a headache of a problem with this program. my difficulty comes from the fact that it needs to be broke down into 3 parts. a gratuity.h file a Gratuity file than the main revised .cpp file. I shall put what i have of each so far, and what the book ask.
What the book ask:
Design a Tips class that calculates the gratuity on a restaurant meal. Its only class member variable, taxRate, should be set by a one parameter constructor to whatever rate is passed to it when a Tips object is created. if no argument is passed a default tax rate of .065 should be used. The class should have just one public function, computeTip. This function needs to accept two arguments, the total bill and the tip rate. It should use this information to compute what the cost of the bill was before tax was added. It should than apply the tip rate to just the meal cost portion of the bill to compute and return the tip amount. Demonstrate the class by creating a program that creates a single tip object, and than loops multiple times to allow the program user to retrieve the correct tip amount using various bill totals and desired tip rates.