a taxi company costs $ 2.75 for the first quarter - mile and 12.5 cents for each additional quarter mile . what is the maximum distance you can travel with $ 6.50 ?
use reverse calculation - total cost = fixed cost ( for 1 / 4 miles ) + variable cost ( distance travelled ) or , 6.50 = 2.75 + 0.125 * d or , 3.75 = d / 8 or , d = 30 quarter miles so , total distance = ( 30 + 1 ) quarter miles so , distance = 31 / 4 = > 73 / 4 miles hence answer will be ( d )
add(multiply(divide(multiply(subtract(6.5, 2.75), const_100), 12.5), const_0_25), const_0_25)