Question: Create a Road class(C++, include a .h file, cpp file, driver file). The class should have functions for setting the width of the road in
Create a Road class(C++, include a .h file, cpp file, driver file). The class should have functions for setting the width of the road in feet and the length of the road in miles. It should also have functions for getting the width of the road and the length of the road (2 separate functions). Those 2 functions should not have code for a prompt for the user or for input. The user interaction should be in the driver file. Create a function called asphalt that will accept a road thickness as an input parameter, then, on the basis of the thickness, it will compute and return the number of cubic feet of asphalt needed to pave the road (1 mile = 5280 feet). Test each function of the class thoroughly with a driver file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
