Ms. Jonalyn Computer 10 7:30-9:30 AM Manombaga Mr. Jeffrey Asijan Computer 5 9:50-11:20 AM Mr. Mark Anthony Computer 8 1:00-2:30 PM Francisco GRADE 10 1. Hands-on Activity 6: Guess the Number Code: #include<iostream.h> #include<conio.h> void main() { clrscr(); int num; cout<<"Guess a Number : "; cin>>num; if(num>10 && num<100) { cout<<"What a mind!!"; } else { cout<<"Opps..!!"; } getch(); }
cout<<"Are you a Robot ? "; cin>>robchk; int a = strcmp("yes", robchk); if(a==0) { cout<<"Sorry!!.. You can't proceed."; } else { cout<<"Congrats!!. You can proceed."; } getch(); } 3. Hands-on Activity 8: Odd or Even Code: #include<iostream.h> #include<conio.h> void main() { clrscr(); int num; cout<<"Enter a number :"; cin>>num; if(num%2==0) { cout<<"This is an even number"; } else { cout<<"This is an odd number"; } getch(); }
4. Hands-on Activity 9: Finding the largest number
Code: #include<iostream.h> #include<conio.h> void main() { clrscr(); int a, b, big; cout<<"Enter two number : "; cin>>a>>b; if(a>b) { big=a; } else { big=b; } cout<<"Biggest of the two number is "<<big; getch(); } 5. Hands-on Activity 10: Average and Percentage Code: #include<iostream.h> #include<conio.h> void main() { clrscr(); int mark[5], i; float sum=0; cout<<"Enter marks obtained in Physics, Chemistry, Maths, CS, English :"; for(i=0; i<5; i++) { cin>>mark[i]; sum=sum+mark[i]; } float avg=sum/5; float perc; perc=(sum/500)*100; cout<<"Average Marks = "<<avg; cout<<"\nPercentage = "<<perc<<"%"; getch(); }
6. Hands-on Activity 11: Arithmetic Mean
Code: #include<iostream.h> #include<conio.h> void main() { clrscr(); int n, i, arr[50], sum=0; cout<<"How many number you want to enter ?\n"; cin>>n; cout<<"Enter "<<n<<" Numbers :"; for(i=0; i<n; i++) { cin>>arr[i]; sum=sum+arr[i]; } int armean=sum/n; cout<<"Arithmetic Mean = "<<armean; getch(); } GRADE 5 Activities A. Answer Node Challege (Page 48-49) B. Discussion: Internet Etiquette (see attached)
Grade 8 Activities A. Discussion: Internet Etiquette (see attached)