Question is for Microsoft Visual BasicSolutionFirst open Mic


Question is for Microsoft Visual Basic

Solution

First open Microsoft Visual Studio, Then create New Application using Visual basic

Now first create 5 labels, 4 subjects and 1 for grade output Then create 6 Text boxes Text1,Text2,Text3,Text4,Text5,Text6. Now create a command named as submit and click on it and a notepad will open then copy the below given code and then run the program and give values and test the output

private sub submit_click()

Text5.Text=(Val(Text1.Text)+Val(Text2.Text)+Val(Text3.Text)+Val(Text4.Text))
If Text5.Text >= 372 Then
Text6.Text=\"Grade A\"
ElseIf Text5.Text >339 And Text5.Text <372 Then
Text6.Text=\"Grade B\"
ElseIf Text5.Text >279 And Text5.Text < 340 Then
Text6.Text=\"Grade C\"
ElseIf Text5.Text >239 And Text5.Text <280 Then
Text6.Text=\"Grade D\"
ElseIf Text5.Text < 240 Then
Text6.Text=\"Grade F\"
end If
end

 Question is for Microsoft Visual BasicSolutionFirst open Microsoft Visual Studio, Then create New Application using Visual basic Now first create 5 labels, 4 s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site