#include
int main(){
int x,y;
printf("Enter value for x :");
scanf("%d",&x);
printf("Enter value for y :");
scanf("%d",&y);
if ( x > y ){
printf("X is large number - %d\n",x);
}
else{
printf("Y is large number - %d\n",y);
}
return 0;
}
Friday, October 7, 2011
Thursday, October 6, 2011
IT 403
Sunday, October 2, 2011
Solution # 8
#include
int choice,p,a,b,c,area,base, height;
int main()
{
printf("This program will get the perimeter and are of Triangle\n");
printf("Choices\n");
printf("1.] Perimeter\n");
printf("2.] Area\n");
printf("Enter Choice [1 or 2]: ");
scanf("%d",&choice);
if (choice == 1)
{
printf("Enter Side A: ");
scanf("%d",&a);
printf("Enter Side B: ");
scanf("%d",&b);
printf("Enter Side C: ");
scanf("%d",&c);
p = a + b + c;
printf("The perimeter of the area of a triangle is %d",p);
}
if (choice == 2)
{
printf("Enter Base: ");
scanf("%d",&base);
printf("Enter Height: ");
scanf("%d",&height);
area = (base * height)/2;
printf("The area of a triangle is %d",area);
}
getch();
return 0;
}
Saturday, October 1, 2011
Checkbox & radio buttons
Change the following properties refer the table below
Following code is typed in the Click() events of the CheckBoxes
Private Sub chkBold_Click()
If chkBold.Value = 1 Then
txtDisplay.FontBold = True
Else
txtDisplay.FontBold = False
End If
End Sub
Private Sub chkItalic_Click()
If chkItalic.Value = 1 Then
txtDisplay.FontItalic = True
Else
txtDisplay.FontItalic = False
End If
End Sub
Private Sub chkUnderline_Click()
If chkUnderline.Value = 1 Then
txtDisplay.FontUnderline = True
Else
txtDisplay.FontUnderline = False
End If
End Sub
Following code is typed in the Click() events of the OptionButtons
Private Sub optBlue_Click()
txtDisplay.ForeColor = vbBlue
End Sub
Private Sub optRed_Click()
txtDisplay.ForeColor = vbRed
End Sub
Private Sub optGreen_Click()
txtDisplay.ForeColor = vbGreen
End Sub
To terminate the program following code is typed in the Click() event of the Exit button
Private Sub cmdExit_Click()
End
End Sub
Run the program by pressing F5. Check the program by clicking on OptionButtons and CheckBoxes.
Wednesday, September 28, 2011
SEAT WORK
Monday, September 26, 2011
COMED 7 - 8-9
Group 1
1. Atillo, Annalou
2. Aying, Jason Kent
3. De juan Charmelyn
4. Caballero, Ruben
5. Quinto, Shy Ann Marie
6. Mesa, Charl
Group 2
1. Cadayona, Dexter
2. De Juan Cheryln
3. Detoyato, Franz
4. Sumaria, Merry Ann
5. Casiple, Christopher
(Evening)
Group 1
1. Abouelo
2. Dumadangon
3. Jumawan
4. Noro
5. Pepito
6. Pulido
7. Sumile
Group 2.
1. Delos Reyes
2. Jamora
3. Laberos
4. OmaƱa
5. Perucho
6. Ruben
Task:
This activity will show your creativity, how you will apply those knowledge that you learned from this subject (multimedia) in making your own music video .
In your group you select a director, script writer and cast. Each group will select a song (love song, R&B, Rock, Alternative and the likes) you will create a music video base from the selected song.
Requirements:
Digital Camera
Cam coder
Video Editing Software
Deadline of submission will be on OCTOBER 3, 2011