Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Python exercise
Kwartaalinkomsten
Sign in to hand in your solution and get feedback.
jan = float(input("Hoeveel geld werd er verdiend in januari?"))
feb = float(input("Hoeveel geld werd er verdiend in februari?"))
maa = float(input("Hoeveel geld werd er verdiend in maart?"))
apr = float(input("Hoeveel geld werd er verdiend in april?"))
mei = float(input("Hoeveel geld werd er verdiend in mei?"))
jun = float(input("Hoeveel geld werd er verdiend in juni?"))
jul = float(input("Hoeveel geld werd er verdiend in juli?"))
aug = float(input("Hoeveel geld werd er verdiend in augustus?"))
sep = float(input("Hoeveel geld werd er verdiend in september?"))
okt = float(input("Hoeveel geld werd er verdiend in oktober?"))
nov = float(input("Hoeveel geld werd er verdiend in november?"))
dec = float(input("Hoeveel geld werd er verdiend in december?"))
somK1 = jan + feb + maa
gemK1 = somK1 / 3
somK2 = apr + mei + jun
gemK2 = somK2 / 3
somK3 = jul + aug + sep
gemK3 = somK3 / 3
somK4 = okt + nov + dec
gemK4 = somK4 / 3
slechtsteKwartaal = min(gemK1, gemK2, gemK3, gemK4)
besteKwartaal = max(gemK1, gemK2, gemK3, gemK4)
print("Het slechtste kwartaal verdiende €", round(slechtsteKwartaal, 2))
print("Het beste kwartaal verdiende €", round(besteKwartaal, 2))