๐ WAYPOINT LESSON
Checkpoint โ Control flow
โญ beginnerโณ 20 min read๐ Lesson 17 of 85
Guarded computation, classification, and accumulation in one sitting.
Checkpoint: the grade report
Task: implement two methods:
static char Letter(int score)โAfor โฅ90,Bโฅ80,Cโฅ70,Dโฅ60,Fbelow; throwArgumentExceptionfor scores outside 0โ100.static string Histogram(int[] scores)โ one line per letterA..Fin that order: the letter,:, then one#per score in that bucket, then\n. Scores out of 0โ100 are ignored. Null/empty input yields""... except the histogram always prints all five lines, so empty input prints the five letters with zero#each.