|
|
Visual Basic 疑问 |
userinput = TextBox1.Text
Select Case userinput
Case A = grade >= 75 And grade <= 100
MsgBox("Grade A")
Case B = grade >= 60 And grade <= 74
MsgBox("Grade B")
Case C = grade > 50 And grade <= 59
MsgBox("Grade C")
Case D = grade >= 40 And grade <= 49
MsgBox("Grade D")
Case Else
MsgBox("Fail")
End Select
'Calculate Gross Pay Rate.....
GrossPay = WorkedHour * PayRate
Label6.Text = WorkedHour.ToString("N")
Label7.Text = PayRate.ToString("C")
Label8.Text = GrossPay.ToString("C")
'Calculate OverTime Pay Rate.....
If WorkedHour > 35 & WorkedHour < 60 Then
OTPay = (WorkedHour - 35) * (PayRate) * (1.5) + GrossPay
MsgBox(OTPay)
JBTALKS.CC |联系我们 |隐私政策 |Share
GMT+8, 2025-12-31 09:10 PM , Processed in 0.087885 second(s), 20 queries .
Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
Dedicated Server powered by iCore Technology Sdn. Bhd.