Challenge instead of issuing ticket for the last case make


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.

Challenge Instead of issuing "ticket!" for the last case, make the function create the string "you drove ___ mph" where the underlines are replaced by the car's speed.

Solution Preview :

Prepared by a verified Expert
Macroeconomics: Challenge instead of issuing ticket for the last case make
Reference No:- TGS01595913

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)