It consumes two counting numbers one that represents the


Design the function ticket. It consumes two counting numbers: one that represents the speed of a car and the other one the speed limit of the road. The result is one of these strings: (1)"fine"for a car that goes below the speed limit; (2)"danger"for a car that is going at most 5 mph faster than the speed limit; or (3)"ticket!"for a car that exceeds that last speed.

Solution Preview :

Prepared by a verified Expert
Macroeconomics: It consumes two counting numbers one that represents the
Reference No:- TGS01595911

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)