Softex IT Solutions Aug.2013 | Page 30

Page no:30 Lab Exercises for VB VB introduction a. Start a new project b. Open tools, properties & project explorer window c. Change the name of project d. Change name& title of form & save it. e. Set the following, save the form & run it. i. Height & width ii. BorderStyle property to Fixed Dialog iii. WindowState property to maximized iv. StartUpPosition property to center v. Moveable property to false vi. Font & foreground color VB-The language a. Declare two variables. Accept the values using InputBox() & display the result on form. b. Accept 10 numbers in array, display minimum & maximum number. c. Display first odd numbers & store them in array. d. Accept numbers in array, take a number to search in an array, find the number of times that number is occurred in array. Inputbox() & Msgbox() functions a. Accept a name from user & display hello in msgbox() b. Accept one number using inputbox() & display its factorial in msgbox() Control flow statements & loops a. Accept a username & password using InputBox() check whether it is Scott & tiger resp., display valid user names else display proper error message. b. Accept a number, display whether it is odd or even number c. Accept a character, check whether it is a alphabet, number or special symbol. d. Accept a number, display its Armstrong no. e. Create a Fibonacci series ?? L?[X?\??K?X??\H?[X?\??X???]\?]\??[YH??? ??Z[[??[??[??K?\?^H?^x?&\?]H?]^K^H?[YH [? ?YX\???X??\H]H???H\?\??X???]\?HYX\?\?\??? ??X??\H]K?X??]H?[Y][?? ?\?^HH]HY?\? H^\????H?\??[?]K????Y\?\?K??]HH???Y\?H?\?^H[? ??[??YHY\??Y?H?[???H?Y????]HH???Y\?H?\?^H[??[?HY\??Y?H?[???H[??Y??