Documents
User Generated
Resources
Learning Center

# soalan-soalan-vb-terpilih

VIEWS: 56 PAGES: 3

• pg 1
```									     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.
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.
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

```
To top