Question: Language is C++ 3. Area Calculator Create a class called Area that uses two variables (length, and width) of type Distance to model the area
Language is C++
3. Area Calculator Create a class called Area that uses two variables (length, and width) of type Distance to model the area of a rectangle. Initialize a variable of type Area to specific dimensions (taken as input). Overload the double operator, so that Area object can be converted to double value, returning area in square feet. To calculate the area, convert each dimension from a Distance variable to a variable of type double representing feet and fractions of a foot, and then multiply the resulting two numbers. 1 v #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
