Final Computer - 3prep - Scond - Term - English 6

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

The constant (-----------------) was declared in memory, of datatype( ---------------- ) and, thevalue

------------------- is assigned during the declaration.

 The double quotes "" "" are used if the value of constant is a stringvalue.
 The hashes # # are used if the value of constant is date ortime.

Dear student, with the help of your teacher, to prepare a program using VB.NET language that
receives a numeric value for the radius of a circle, and its circumference and area is calculated when
you press the "Command button".
Note that: area of a circle = 𝝅𝒓𝟐 and the circumference of a circle = 𝟐𝝅r where: r represents the
radius, π = 22/7, do the following:
(1) design a form window as shown in figure(1-2):

Figure (1-2) User interface to be designed


(2) Then open the code window by pressing the button (F7) and, add the (Click) event procedure
for (Button1,Button2) as illustrated in figure (1-3):

Figure (1-3) adding Event Procedures to the Code Window

We will write the code required to calculate the Area of a circle using the Event Procedure
(Button1_Click) and, the circumference of a circle using the Event Procedure (Button2_Click)
and the result will be one ofthem.

8/60

You might also like