vb.net - Determining letter grade using arrays -
this form looks like:
- 10 text boxes down left side user enter student names.
- to right of each of those, column of text boxes user enter point grade.
- to right of each of those, column of text boxes user can not enter anything, contain grade when done calculating it.
two text boxes user can not enter in, , labeled "average" , "std. dev."
when user clicks "calculate" button, to:
- find average , standard deviation of group, , show in appropriate textboxes.
- using standard 90-80-70-60 sequence, figure out grade letter each student , put in appropriate textbox
private sub calculatebtn_click(sender system.object, e system.eventargs) handles calculatebtn.click ' display student's letter grade dim grade(,) string = {{"a", "90"}, {"b", "80"}, {"c", "70"}, {"d", "60"}, {"f", "0"}} dim points(10) string points(0) = point1.text points(2) = point3.text points(3) = point4.text points(4) = point5.text points(5) = point6.text points(6) = point7.text points(7) = point8.text points(8) = point9.text points(9) = point10.text while points end sub
Comments
Post a Comment