Create a road class the class should have functions for


Question 1: Create a Road class. 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 obtaining the width of the road the length of the road.

Remember that the class functions should not interact with the user of the program, either by providing output or by getting input.

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 mila = 5280 feet).

Test each and every function of the class thoroughly with a driver. Please show me all the working and provide the code.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a road class the class should have functions for
Reference No:- TGS0947029

Expected delivery within 24 Hours