Computer Science, asked by narasimha1421, 5 months ago

Write a function for checking the speed of drivers.

This function should have one parameter: speed.

1. If speed is less than 55, it should print “Ok”.

2. Otherwise, for every 5 miles above the speed limit (55), it should give the driver 2 demerit points and print the total number of demerit points. For example, if the speed is 65, it should print: “Demerit Points: 10”.

3. If the driver is given more than 16 points, the function should print: “License suspended!”​

Answers

Answered by sanjudevi9471
3

Answer:

plzzzzz follow me please

Similar questions