soalan-soalan-vb-terpilih

Document Sample
soalan-soalan-vb-terpilih Powered By Docstoc
					     SOALAN-SOALAN PROJEK VISUAL BASIC (SOALAN-
                 SOALAN TERPILIH)
4.   WRITE A SIMPLE PROGRAM TO CALCULATE THE
     AREA OF TRIANGLE. YOUR PROGRAM SHOULD
     ALLOW THE USER TO KEY IN THE LENGTH AND
     HEIGHT OF THE TRIANGLE. USE A FORMULA TO
     CALCULATE AND DISPLAY THE AREA OF THE
     TRIANGLE.
     area = 1 / 2 * length * height
5.   WRITE A SIMPLE PROGRAM TO CALCULATE THE
     AREA OF CIRCLE. YOUR PROGRAM SHOULD ALLOW
     THE USER TO KEY IN THE RADIUS OF THE CIRCLE.
     USE A FORMULA TO CALCULATE AND DISPLAY THE
     AREA OF THE CIRCLE.
     area = 22 / 7 * radius * radius
6.   WRITE A SIMPLE PROGRAM TO CALCULATE THE
     AREA OF RECTANGLE. YOUR PROGRAM SHOULD
     ALLOW THE USER TO KEY IN THE LENGTH AND
     WIDTH OF THE RECTANGLE. USE A FORMULA TO
     CALCULATE AND DISPLAY THE AREA OF THE
     RECTANGLE.
     area = width * length
7.   WRITE A SIMPLE PROGRAM TO CALCULATE THE
     VOLUME OF PYRAMID. YOUR PROGRAM SHOULD
     ALLOW THE USER TO KEY IN THE LENGTH, HEIGHT
     AND WIDTH OF THE PYRAMID. USE A FORMULA TO
     CALCULATE AND DISPLAY THE VOLUME OF THE
     PYRAMID.
     volume = 1 / 3 * lenght * width * height
8.   WRITE A SIMPLE PROGRAM TO CALCULATE THE
     VOLUME OF SPHERE. YOUR PROGRAM SHOULD
     ALLOW THE USER TO KEY IN THE RADIUS OF THE
     SPHERE. USE A FORMULA TO CALCULATE AND
     DISPLAY THE VOLUME OF THE SPHERE.
     volume = 4 / 3 * 22 / 7 * radius * radius * radius
9.   WRITE A SIMPLE PROGRAM TO CALCULATE THE
     VOLUME OF CUBOID. YOUR PROGRAM SHOULD
     ALLOW THE USER TO KEY IN THE LENGTH, HEIGHT
     AND WIDTH OF THE CUBOID. USE A FORMULA TO
     CALCULATE AND DISPLAY THE VOLUME OF THE
     CUBOID.
     volume = length * width * height
10. WRITE A PROGRAM TO FIND THE TOTAL AND
    AVERAGE OF THREE NUMBERS.
   total = first_number + second_number +
   third_number
   average = total / 3
11. WRITE A PROGRAM TO FIND THE TOTAL,
    DIFFERENCE AND AVERAGE OF TWO NUMBERS.
   total = first_number + second_number
   difference = first_number - second_number
   average = total / 2

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:56
posted:7/13/2011
language:Malay
pages:3