Draw flowchart, write an algorithm and program in visual basic to input the employee number, employee name,designation,basic salary and grade from the user and calculate the bonus according to the following. If grade is B then bonus will be 7000 From should be designed in such a way that all the controls should be located centrally in every size of the form.
Ans :
Dim bon, sal As Integer Private Sub cmdCalculate_Click() Logic for calculating the salary/bonus
If optA.Value = True Then bon = 1000
Elself optB.Value = True Then bon = 7000
Else bon = 12000
End If txtBonus. Text = CStr (bon) txtSal.Text = CStr(sal + bon) End Sub
No comments:
Post a Comment