Skip to main content
5 events
when toggle format what by license comment
Jan 31, 2022 at 15:17 vote accept Vladimir
Dec 3, 2021 at 14:35 comment added Vladimir Hi! They are mostly high-school so I'm first concerned about simple formula-code translation, grasping the intuition... I will mention that there are some quirks around floating points though. The previous exercise might be for example coding pythagoras theorem, prompting for whether one is looking for a hypotenuse or a hick.
Dec 2, 2021 at 8:44 comment added njuffa @Vladimir If you decide to use solving a quadratic equation as an example, I would suggest to make sure to introduce the numerically advantageous way (e.g. along the lines of what I outlined here, so as not to proliferate bad practices that one later finds deployed in real-life code. The other proposed exercises do not seem to carry such risk.
Nov 30, 2021 at 13:56 comment added Vladimir Thanks! These are good. The quadratic equation will blend right in with our previous exercises.
Nov 28, 2021 at 23:24 history answered user58697 CC BY-SA 4.0