Exercise 2

Quiz 2
Define Visual Basic Explain why VB 6.0 is not classified under object oriented programming languages. Follow the instructions below: Write a program that computes the area of a circle executed using a click event attached on a command button named cmdCompute. Write a program that implements two functions named root1 and root2 to compute the two roots of x and display the results via a message box when a button named cmdRoots is clicked. Test to ensure the value of "a" is not equal to zero.  Write a visual basic program to compute the surface area of a cylinder whose one side is open. Attach the code on a keypress event of a command button named cmdSarea.   Write a Visual Basic program to perform a bubble sort on numeric data stored in a one dimensional array of 12 elements. The resultant data should be arranged in ascending order. Attach the code to a click event attached on a command button labeled cmdbubbledo.  