- Home
·
- Miscellaneous
·
- This code allows you to Display the average of 2 quarters and the final exam.
This code allows you to Display the average of 2 quarters and the final exam.
This code allows you to Display the average of 2 quarters and the final exam.
Rate This code allows you to Display the average of 2 quarters and the final exam.
(1(1 Vote))
'them. You also need a lable to display the average
Private Sub cmdCalculate_Click() ' You can change the name of the command button
lblAvereage.Caption = (txtA * 2 + txtB * 2 + txtC * 1) / 5
End Sub
'Now you can add a clear button and exit button. DONT FORGET TO CHANGE THE NAMEs
'IF WANTED!
This code allows you to Display the average of 2 quarters and the final exam. Comments
No comments yet — be the first to post one!
Post a Comment