would someone be so kind to write the code for these programs? (school work, and I don't have time it's not a matter of not understanding) :)

Printable View