Felina writes a piece of code to calculate her grade. She writes:

to-report my-grade [percentage] ; -1
	ifelse percentage > 0 [ -1 > 0?
		report "F" ;
	] [
		ifelse percentage > 60 [ -1 > 60?
			report "D"
		] [
			ifelse percentage > 70 [ -1 > 70?
				report "C"
			] [
				ifelse percentage > 80 [ -1 > 80?
					report "B"
				] [
					ifelse percentage > 90 [ -1 > 90?
						report "A"
					] [
						report "error"
					]
				]
			]
		]
	]
end

Algorithms to write:

  1. How to wash your hands