vb.net - Determining letter grade using arrays -


this form looks like:

  1. 10 text boxes down left side user enter student names.
  2. to right of each of those, column of text boxes user enter point grade.
  3. 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:

  1. find average , standard deviation of group, , show in appropriate textboxes.
  2. 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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -