I need to write a program to analyze a list of grades to determine the # of A's, B's, and C's after applying a curve percentage selected by the user.
How do I link two listboxes, one with the grades, and one with 5 available curves that will be selected by the user to show the curved grade in the 3rd listbox? (using vb 2010/8e)
This is the code that I am using:
Public Class frmAnalysis
Private Sub btnComputeCurve_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnComputeCurve.Click
Dim grade, curve, curvedGrade As Double
For i As Integer = 0 To lstGradeList.Items.Count - 1
grade = CDbl(lstGradeList.Items(i))
curve = grade * curve / 100 + grade
lstCurvedGrades.Text = CStr(curve)
For i As Integer = 0 To lstAvailableCurves.SelectedItems.Count - 1
curvedGrade = CDbl(lstAvailableCurves.Items(i))
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!