default constructor

So I have this problem and so far I came up below and needs some guidance in how to start this project. Thanks. I'm not whether taxrate and tip should replace void in the constructor declaration.

Include a Constructor that takes two arguments, the tax rate and the tip, both as a percentage:
1. Validate that the tax rate is greater than or equal to 1% (0.01) and less than or equal to 12% (0.12). If the value passed to the Constructor is invalid, set the tax rate to 0.065
2. Validate that the tip percentage is greater than or equal to 5% (0.05) and less than or equal to 20% (0.20). If the value passed to the Constructor is invalid, set the tip to 15% (0.15)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#progma once

class RestaurantCheck
{
	// Public Interface
public:
	// Class Constructor(s)
	RestaurantCheck(void);

	// Class Destructor
	~RestaurantCheck(void);

	// Client Methods

	// Private Class Members
private:
	// 1. Constant Value Declarations

	// 2. Variable Declarations
};
Topic archived. No new replies allowed.