Grade Tracker Project in VB
Grade Tracker Project in VB
Controls to Add:
1. Input Section:
o Label: Set Text to "Enter Grade:".
o TextBox: Name it txtGradeInput.
o Button: Name it btnAddGrade and set Text to "Add Grade".
2. Display Section:
o ListBox: Name it lstGrades to display the list of grades.
3. Statistics Section:
o Buttons:
Name: btnCalculateAverage, Text: "Calculate Average".
Name: btnFindHighest, Text: "Find Highest".
Name: btnFindLowest, Text: "Find Lowest".
o Labels:
Name: lblAverage, Text: "Average: ".
Name: lblHighest, Text: "Highest: ".
Name: lblLowest, Text: "Lowest: ".
4. Optional (Clear Button):
o Button: Name it btnClear, Text: "Clear Grades".
Top Section (Input): Place the "Enter Grade" label, txtGradeInput, and
btnAddGrade horizontally at the top of the form.
Left Section (Display): Add the lstGrades ListBox to the left-middle part of the
form.
Right Section (Statistics): Arrange the statistics buttons (btnCalculateAverage,
btnFindHighest, btnFindLowest) vertically on the right side.
Bottom Section: Place the statistics labels (lblAverage, lblHighest, lblLowest)
and btnClear at the bottom.
Setting Properties:
Select each control and set its properties using the Properties Window:
o TextBox (txtGradeInput):
Set Multiline to False.
o Buttons:
Set the Font to a readable size, e.g., 10 or 12.
Ensure the Name property corresponds to the code provided.
o Labels:
Set the AutoSize property to True.
o ListBox (lstGrades):
Set ScrollAlwaysVisible to True.
markdown
Copy code
------------------------------------------
| Enter Grade: [__________] [Add Grade] |
| |
| Grades List: |
| [Grade1 ] |
| [Grade2 ] |
| [Grade3 ] |
| |
| [Calculate Average] [Find Highest] |
| [Find Lowest ] |
| Average: ______ |
| Highest: ______ |
| Lowest: ______ |
| [Clear Grades] |
------------------------------------------