Timer and speed bonus (Quiz App)

Answers now carry the seconds taken: B 12. The quiz may set TIME <seconds: an answer slower than that is <n late (answer <letter) and scores nothing. A correct answer scores 1 point, or 2 if answered in 5 seconds or less. After the score line print points=<total.

Input: As before, answers with seconds.

Output: As before, plus the points.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Late is checked before right/wrong.

More Quiz App practice