namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Subject Code: CS242");
Console.WriteLine("Subject Title: Programming Language");
Console.WriteLine("Name: Via Galaagte");
Console.WriteLine("Age: 21");
Console.WriteLine("Birth Date: August 11, 1995");
Console.WriteLine("Year& Section: BSCS 2B");
Console.WriteLine("Subject Instructor: Clinton Reducto");
Console.ReadKey();
}
}
}
Lunes, Pebrero 27, 2017
Huwebes, Pebrero 23, 2017
Activity14th
using System;
using System.Collections.Generic;
using System. Linq;
using System.Text;
using System.Threading.Tasks;
namespace Galagate_My14thCSharp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Subject Code: CS242");
Console.WriteLine("Subject Title: Programming Language");
Console.WriteLine("Name: Via Galaagte");
Console.WriteLine("Age: 21");
Console.WriteLine("Birth Date: August 11, 1995");
Console.WriteLine("Year& Section: BSCS 2B");
Console.WriteLine("Subject Instructor: Clinton Reducto");
Console.ReadKey();
int number, number1;
Console.WriteLine("Enter an integer:");
number = int.Parse(Console.ReadLine());
Console.WriteLine("You entered: {0}", number);
Console.WriteLine("Enter an integer:");
number = int.Parse(Console.ReadLine());
Console.WriteLine("You entered: {0}", number);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System. Linq;
using System.Text;
using System.Threading.Tasks;
namespace Galagate_My14thCSharp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Subject Code: CS242");
Console.WriteLine("Subject Title: Programming Language");
Console.WriteLine("Name: Via Galaagte");
Console.WriteLine("Age: 21");
Console.WriteLine("Birth Date: August 11, 1995");
Console.WriteLine("Year& Section: BSCS 2B");
Console.WriteLine("Subject Instructor: Clinton Reducto");
Console.ReadKey();
int number, number1;
Console.WriteLine("Enter an integer:");
number = int.Parse(Console.ReadLine());
Console.WriteLine("You entered: {0}", number);
Console.WriteLine("Enter an integer:");
number = int.Parse(Console.ReadLine());
Console.WriteLine("You entered: {0}", number);
Console.ReadKey();
}
}
}
Activity12th
#include <iostream>
#include<string>
using namespace std;
int main (){
cout<<"\n==========================================";
cout << "\n Name: Via Galagate ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Subject Code: CS242 ";
cout << "\n Activity NO.: 12 ";
cout << "\n Instructor: Clinton Reducto ";
cout<<"\n==========================================";
cout<<"\n \n \n";
int grade;
cout<<" Enter Your Grade in CS242:";
cin >>grade;
if (grade>=98 && grade<=100){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 1 :\n";
cout<<" Excellent ! :\n";
cout<<"========================================\n";
}
else if (grade>=97 && grade<=97){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 1.25 :\n";
cout<<": Very Good! :\n";
cout<<"========================================\n";
}
else if (grade>=92 && grade<=94){
cout<<"======================================\n";
cout<<": Grade Point Equivalent: 1.5 : \n";
cout<<": Very Good! :\n";
cout<<"========================================\n";
}
else if (grade>=89 && grade<=91){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 1.75 : \n";
cout<<": Good! :\n";
cout<<"========================================\n";
}
else if (grade>=86 && grade<=88){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2 : \n";
cout<<": Good! :\n";
cout<<"========================================\n";
}
else if (grade>=83 && grade<=85){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2.25 : \n";
cout<<": Good! :\n";
cout<<"========================================\n";
}
else if (grade>=80 && grade<=82){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2.5 : \n";
cout<<": Fair! :\n";
cout<<"========================================\n";
}
else if (grade>=77 && grade<=79){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2.75 :\n";
cout<<": Fair! :\n";
cout<<"========================================\n";
}
else if (grade>=75 && grade<=77){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 3 :\n ";
cout<<": Passed :\n";
cout<<"========================================\n";
}
else{
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 5.00 : \n";
cout<<": Failed :\n";
cout<<"========================================\n";
}
return 0;
}
#include<string>
using namespace std;
int main (){
cout<<"\n==========================================";
cout << "\n Name: Via Galagate ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Subject Code: CS242 ";
cout << "\n Activity NO.: 12 ";
cout << "\n Instructor: Clinton Reducto ";
cout<<"\n==========================================";
cout<<"\n \n \n";
int grade;
cout<<" Enter Your Grade in CS242:";
cin >>grade;
if (grade>=98 && grade<=100){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 1 :\n";
cout<<" Excellent ! :\n";
cout<<"========================================\n";
}
else if (grade>=97 && grade<=97){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 1.25 :\n";
cout<<": Very Good! :\n";
cout<<"========================================\n";
}
else if (grade>=92 && grade<=94){
cout<<"======================================\n";
cout<<": Grade Point Equivalent: 1.5 : \n";
cout<<": Very Good! :\n";
cout<<"========================================\n";
}
else if (grade>=89 && grade<=91){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 1.75 : \n";
cout<<": Good! :\n";
cout<<"========================================\n";
}
else if (grade>=86 && grade<=88){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2 : \n";
cout<<": Good! :\n";
cout<<"========================================\n";
}
else if (grade>=83 && grade<=85){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2.25 : \n";
cout<<": Good! :\n";
cout<<"========================================\n";
}
else if (grade>=80 && grade<=82){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2.5 : \n";
cout<<": Fair! :\n";
cout<<"========================================\n";
}
else if (grade>=77 && grade<=79){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 2.75 :\n";
cout<<": Fair! :\n";
cout<<"========================================\n";
}
else if (grade>=75 && grade<=77){
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 3 :\n ";
cout<<": Passed :\n";
cout<<"========================================\n";
}
else{
cout<<"========================================\n";
cout<<": Grade Point Equivalent: 5.00 : \n";
cout<<": Failed :\n";
cout<<"========================================\n";
}
return 0;
}
Activity11th
#include <iostream>
#include<string>
using namespace std;
int main (){
cout<<"\n==========================================";
cout << "\n Name: Via Galagate ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Subject Code: CS242 ";
cout << "\n Activity NO.: 11 ";
cout << "\n Instructor: Clinton Reducto ";
cout<<"\n==========================================";
cout<<"\n \n \n";
int age;
cout<<"Enter the Age : \n";
cin >> age;
if(age>17)
{
cout<<"=========================== \n";
cout<<" Eligible to vote \n";
cout<<"=========================== \n";
}
else
{
cout<<"========================================== \n";
cout<<" NOt Eligible to vote == \n " ;
cout<<"========================================== \n";
cout<<"\n \n";
}
return 0;
}
#include<string>
using namespace std;
int main (){
cout<<"\n==========================================";
cout << "\n Name: Via Galagate ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Subject Code: CS242 ";
cout << "\n Activity NO.: 11 ";
cout << "\n Instructor: Clinton Reducto ";
cout<<"\n==========================================";
cout<<"\n \n \n";
int age;
cout<<"Enter the Age : \n";
cin >> age;
if(age>17)
{
cout<<"=========================== \n";
cout<<" Eligible to vote \n";
cout<<"=========================== \n";
}
else
{
cout<<"========================================== \n";
cout<<" NOt Eligible to vote == \n " ;
cout<<"========================================== \n";
cout<<"\n \n";
}
return 0;
}
Activity10th
#include <iostream>
#include<string>
using namespace std;
int main (){
string myName,livein,howold,myfather,mymother;
cout << "What's your name? ";
getline (cin,myName);
cout << "Where do you live? ";
getline (cin,livein);
cout << "How old are you? ";
getline (cin,howold);
cout << "Who is your father? ";
getline (cin,myfather);
cout << "WHO is your mother? ";
getline (cin,mymother);
cout<<" My name is " <<myName <<".";
cout << " I live in " <<livein <<".";
cout << " I am 22 years old "<<".";
cout << " My Father's name is " <<myfather <<".";
cout << " My Mother's name is " <<mymother <<".";
return 0;
}
#include<string>
using namespace std;
int main (){
string myName,livein,howold,myfather,mymother;
cout << "What's your name? ";
getline (cin,myName);
cout << "Where do you live? ";
getline (cin,livein);
cout << "How old are you? ";
getline (cin,howold);
cout << "Who is your father? ";
getline (cin,myfather);
cout << "WHO is your mother? ";
getline (cin,mymother);
cout<<" My name is " <<myName <<".";
cout << " I live in " <<livein <<".";
cout << " I am 22 years old "<<".";
cout << " My Father's name is " <<myfather <<".";
cout << " My Mother's name is " <<mymother <<".";
return 0;
}
Activity9th
#include <iostream>
using namespace std;
int main(){
int number;
cout << "\n Subject Code: CS242 ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Course/YEAR: BSCS 2B ";
cout << "\n Activity NO.: 9 ";
cout << "\n Instructor: Clinton Reducto ";
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered" << number;
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered " << number;
return 0;
}
using namespace std;
int main(){
int number;
cout << "\n Subject Code: CS242 ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Course/YEAR: BSCS 2B ";
cout << "\n Activity NO.: 9 ";
cout << "\n Instructor: Clinton Reducto ";
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered" << number;
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered " << number;
return 0;
}
Huwebes, Pebrero 16, 2017
activity8
#include <iostream>
using namespace std;
int main(){
int number;
cout << "\n Subject Code: CS242 ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Course/YEAR: BSCS 2B ";
cout << "\n Activity NO.: 9 ";
cout << "\n Instructor: Clinton Reducto ";
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered" << number;
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered " << number;
return 0;
}
using namespace std;
int main(){
int number;
cout << "\n Subject Code: CS242 ";
cout << "\n Subject Title: Programming Language ";
cout << "\n Course/YEAR: BSCS 2B ";
cout << "\n Activity NO.: 9 ";
cout << "\n Instructor: Clinton Reducto ";
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered" << number;
cout << " \n Enter an integer: ";
cin >> number;
cout << " \n You entered " << number;
return 0;
}
Galagate_Activity7
#include <stdio.h>
int main()
{
printf("========================================\n");
printf("= Name: Via S. Galaagte =\n");
printf("= Subject Title: Programing Language =\n");
printf("= Subject Code: CS242 =\n");
printf("= Activity No: 7 =\n");
printf("= Instructor: Clinton Reducto =\n");
printf("========================================\n");
int grade;
printf("\n\n\nEnter your grade in CS242:");
scanf("%d", &grade);
if (grade>=98 && grade<=100){
printf("========================================\n");
printf(": Grade Point Equivalent: 1 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Excellent! :\n");
printf("========================================\n");
}
else if (grade>=97 && grade<=97){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.25 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Very Good! :\n");
printf("========================================\n");
}
else if (grade>=92 && grade<=94){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.5 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Very Good! :\n");
printf("========================================\n");
}
else if (grade>=89 && grade<=91){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.75 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=86 && grade<=88){
printf("========================================\n");
printf(": Grade Point Equivalent: 2 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=83 && grade<=85){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.25 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=80 && grade<=82){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.5 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Fair! :\n");
printf("========================================\n");
}
else if (grade>=77 && grade<=79){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.75 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Fair! :\n");
printf("========================================\n");
}
else if (grade>=75 && grade<=77){
printf("========================================\n");
printf(": Grade Point Equivalent: 3 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Passed :\n");
printf("========================================\n");
}
else{
printf("========================================\n");
printf(": Grade Point Equivalent: 5.00 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Failed :\n");
printf("========================================\n");
}
return 0;
}
int main()
{
printf("========================================\n");
printf("= Name: Via S. Galaagte =\n");
printf("= Subject Title: Programing Language =\n");
printf("= Subject Code: CS242 =\n");
printf("= Activity No: 7 =\n");
printf("= Instructor: Clinton Reducto =\n");
printf("========================================\n");
int grade;
printf("\n\n\nEnter your grade in CS242:");
scanf("%d", &grade);
if (grade>=98 && grade<=100){
printf("========================================\n");
printf(": Grade Point Equivalent: 1 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Excellent! :\n");
printf("========================================\n");
}
else if (grade>=97 && grade<=97){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.25 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Very Good! :\n");
printf("========================================\n");
}
else if (grade>=92 && grade<=94){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.5 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Very Good! :\n");
printf("========================================\n");
}
else if (grade>=89 && grade<=91){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.75 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=86 && grade<=88){
printf("========================================\n");
printf(": Grade Point Equivalent: 2 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=83 && grade<=85){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.25 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=80 && grade<=82){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.5 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Fair! :\n");
printf("========================================\n");
}
else if (grade>=77 && grade<=79){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.75 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Fair! :\n");
printf("========================================\n");
}
else if (grade>=75 && grade<=77){
printf("========================================\n");
printf(": Grade Point Equivalent: 3 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Passed :\n");
printf("========================================\n");
}
else{
printf("========================================\n");
printf(": Grade Point Equivalent: 5.00 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Failed :\n");
printf("========================================\n");
}
return 0;
}
Galagate_activity6
#include <stdio.h>
int main (){
int age;
printf ("========================================== \n");
printf("= Subject Code:CS242 = \n");
printf("= Subject Title:programming language = \n");
printf("= Subject Code:CS242 = \n");
printf ("= Activity No.6 = \n");
printf ("= Insructor: Clinton Reducto = \n");
printf ("============================================ \n");
printf ("\n \n \n \n");
printf ("Enter the age: \n");
scanf("%d",&age);
if(age <18)
{
printf("========================================== \n");
printf(" Not Eligible to Vote \n");
printf("========================================== \n");
printf("\n");
}
else
{
printf("==========================================\n");
printf(" Eligible to Vote \n");
printf("==========================================\n");
}
return 0;
}
int main (){
int age;
printf ("========================================== \n");
printf("= Subject Code:CS242 = \n");
printf("= Subject Title:programming language = \n");
printf("= Subject Code:CS242 = \n");
printf ("= Activity No.6 = \n");
printf ("= Insructor: Clinton Reducto = \n");
printf ("============================================ \n");
printf ("\n \n \n \n");
printf ("Enter the age: \n");
scanf("%d",&age);
if(age <18)
{
printf("========================================== \n");
printf(" Not Eligible to Vote \n");
printf("========================================== \n");
printf("\n");
}
else
{
printf("==========================================\n");
printf(" Eligible to Vote \n");
printf("==========================================\n");
}
return 0;
}
Galagate_Activity5
#include <stdio.h>
int main(){
printf("Name:via Galagate\n");
printf("Subject Code:CS242\n");
printf("Subject Title:programming language\n");
printf("Section:BSCS2B\n");
printf ("Activity No.5\n");
printf ("Insructor: Clinton Reducto\n");
printf("\n \n \n \n ");
int firstNumber, secondNumber, sumOfTwoNumbers, differenceOfTwoNumbers, productOfTwoNumbers, quotientOfTwoNumbers;
printf("Enter two integers:\n");
scanf("%d %d", &firstNumber, &secondNumber);
sumOfTwoNumbers= firstNumber + secondNumber;
differenceOfTwoNumbers = firstNumber - secondNumber;
productOfTwoNumbers = firstNumber * secondNumber;
quotientOfTwoNumbers = firstNumber / secondNumber;
printf("The sum of two number is: %d\n", sumOfTwoNumbers);
printf("The difference of two number is: %d\n", differenceOfTwoNumbers);
printf("The product of two number is: %d\n", productOfTwoNumbers);
printf("The quotient of two number is: %d\n", quotientOfTwoNumbers);
getchar();
return 0;
}
int main(){
printf("Name:via Galagate\n");
printf("Subject Code:CS242\n");
printf("Subject Title:programming language\n");
printf("Section:BSCS2B\n");
printf ("Activity No.5\n");
printf ("Insructor: Clinton Reducto\n");
printf("\n \n \n \n ");
int firstNumber, secondNumber, sumOfTwoNumbers, differenceOfTwoNumbers, productOfTwoNumbers, quotientOfTwoNumbers;
printf("Enter two integers:\n");
scanf("%d %d", &firstNumber, &secondNumber);
sumOfTwoNumbers= firstNumber + secondNumber;
differenceOfTwoNumbers = firstNumber - secondNumber;
productOfTwoNumbers = firstNumber * secondNumber;
quotientOfTwoNumbers = firstNumber / secondNumber;
printf("The sum of two number is: %d\n", sumOfTwoNumbers);
printf("The difference of two number is: %d\n", differenceOfTwoNumbers);
printf("The product of two number is: %d\n", productOfTwoNumbers);
printf("The quotient of two number is: %d\n", quotientOfTwoNumbers);
getchar();
return 0;
}
Galagate_Activity4
#include <stdio.h>
int main(){
printf("Subject Code:CS242\n");
printf("Subject Title:programming language\n");
printf("Section:BSCS2B\n");
printf ("Activity No.3\n");
printf ("Insructor: Clinton Reducto\n");
printf("\n \n \n");
int number1;
int number2;
printf("Enter an integer:");
scanf ("%d", &number1);
printf("you entered: %d\n",number1);
printf("Enter an integer:");
scanf("%d", &number2);
printf("you entered: %d\n",number2);
getchar();
return 0;
}
int main(){
printf("Subject Code:CS242\n");
printf("Subject Title:programming language\n");
printf("Section:BSCS2B\n");
printf ("Activity No.3\n");
printf ("Insructor: Clinton Reducto\n");
printf("\n \n \n");
int number1;
int number2;
printf("Enter an integer:");
scanf ("%d", &number1);
printf("you entered: %d\n",number1);
printf("Enter an integer:");
scanf("%d", &number2);
printf("you entered: %d\n",number2);
getchar();
return 0;
}
Actvity3
#include <stdio.h>
int main(){
printf("Subject Code:CS242\n");
printf("Subject Title:programming language\n");
printf("Section:BSCS2B\n");
printf ("Activity No.3\n");
printf ("Insructor: Clinton Reducto\n");
printf("\n \n \n \n \n");
char a = 'A';
int b = 10;
float c = 10.40000;
printf("value of variable a:%c\n", 'A');
printf("value of variable b:%d\n", 10);
printf("value of variable c:%f\n", 10.400000);
getchar();
return 0;
}
int main(){
printf("Subject Code:CS242\n");
printf("Subject Title:programming language\n");
printf("Section:BSCS2B\n");
printf ("Activity No.3\n");
printf ("Insructor: Clinton Reducto\n");
printf("\n \n \n \n \n");
char a = 'A';
int b = 10;
float c = 10.40000;
printf("value of variable a:%c\n", 'A');
printf("value of variable b:%d\n", 10);
printf("value of variable c:%f\n", 10.400000);
getchar();
return 0;
}
Galaagte_Activity2
#include <stdio.h>
int main()
{
printf("CS242\n");
printf("programming language\n");
printf("via\n");
printf ("21");
printf ("August 11, 1995\n");
printf ("BSCS\n");
printf ("3A\n");
return 0;
}
int main()
{
printf("CS242\n");
printf("programming language\n");
printf("via\n");
printf ("21");
printf ("August 11, 1995\n");
printf ("BSCS\n");
printf ("3A\n");
return 0;
}
Mag-subscribe sa:
Mga Post (Atom)