Use the if control structure. Lie. Add a text box grade to the above form and a command button with the caption/text as "Grade" that computes the grade when it is clicked. The grade is computed as follows ; Total greater than or equal to 80 - Grade "A" Total greater than or equal to 65 and less than 80 - grade "B" ;Total greater than or equal to 50 and less than 65 - grade "C" ; Total greater than or equal to 40 and less than 50- grade "D" ; Total less than 40- grade "F" ill.
A form that gets two numbers from the user through text boxes.Displays four options using option buttons. The options Include Add, Multiply, Divide and Subtract. The user should enter two numbers, select an option and when he clicks on a command button the appropriate result Is displayed In a text box.
Use select case control structure. Lb. A form with one text box and three checkbooks captioned bold, hide, italic. When the bold button Is checked the text In the textbook turns bold and when It Is unchecked the bold Is removed.
The same applies to all buttons. Note that properties can be changed at run time e. G. If Checkbook .
Checked = True Then Textbook . Voluble = False End If The above example checks If the control named checkbook Is checked If It Is then the textbook Is hidden. Note: Take note of user Interface design principles and iv controls naming convention. Computer science industrial attachment proposal By Riviera otherwise it displays fail.
Use the if control structure. I'. Add a text box grade to the less than 50- grade "D" ; Total less than 40 - grade "F" iii. A form that gets two numbers from the user through text boxes. Displays four options using option buttons.The options include Add, Multiply, Divide and Subtract.
Command button the appropriate result is displayed in a text box. Use select case control structure. 'v. A form with one text box and three checkbooks captioned bold, hide, italic.
When the bold button is checked the text in the textbook turns bold and when it is unchecked the bold is removed. The same applies to all buttons. Note Textbook . Visible = False The above example checks if the control named checkbook is checked if it is then the textbook is hidden.
Take note of user interface design principles and iv controls naming convention.