Quiz¶

Example - when to depart
Ronnie should arrive at the destination no later than 5:00 pm. Depending on the way of travel he chooses, Ronnie may need 55, 70, 85, or 95 minutes. Write a program that prints the time Ronnie needs to leave at the latest to arrive on time for each travel duration.
A program that solves this task could look like this:

Task - trip duration
George intends to start a 600-kilometer car trip at 9 a.m. and is interested in the time of arrival if he was traveling at an average speed of 90, 100, 120 or 130 kilometers per hour. Finish the program to list the time of arrival at the destination for each of the aforementioned average speeds.

Task - final grade
The sum of 5 Katie’s grades so far is 23. Katie expects another grade from the final task. Finish the program below so that for each possible final grade (1, 2, 3, 4, or 5) it prints what the average grade would be in that case.

Task - allowance
Little Theo makes a plan for spending his pocket money over a 14-day vacation. Write a program that, for an average daily spend of 5, 10, or 20 euro, lists how much money in total Theo would need in each case.