Thursday, September 19, 2019

Find the Day in the Given Date in C Language

A simple program that will ask the date and then the program will determine what is the day on the given date and display the results on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.


Sample Program Output

Program Listing

day.c

#include<stdio.h>
#include<math.h>
#include<conio.h>


int fm(int date, int month, int year) {
int fmonth, leap;
if ((year % 100 == 0) && (year % 400 != 0))
leap = 0;
   else if (year % 4 == 0)
  leap = 1;
else
  leap = 0;

  fmonth = 3 + (2 - leap) * ((month + 2) / (2 * month))+ (5 * month + month / 9) / 2;

 fmonth = fmonth % 7;

  return fmonth;
}
int day_of_week(int date, int month, int year) {

   int dayOfWeek;
   int YY = year % 100;
   int century = year / 100;

   printf("\nDate: %d/%d/%d \n", date, month, year);

   dayOfWeek = 1.25 * YY + fm(date, month, year) + date - 2 * (century % 4);


   dayOfWeek = dayOfWeek % 7;

   switch (dayOfWeek) {
      case 0:
         printf("weekday = Saturday");
         break;
      case 1:
         printf("weekday = Sunday");
         break;
      case 2:
         printf("weekday = Monday");
         break;
      case 3:
         printf("weekday = Tuesday");
         break;
      case 4:
         printf("weekday = Wednesday");
         break;
      case 5:
         printf("weekday = Thursday");
         break;
      case 6:
         printf("weekday = Friday");
         break;
      default:
         printf("Incorrect data");
   }
   return 0;
}
int main() {
   int date, month, year;

   printf("\nEnter the year : ");
   scanf("%d", &year);

   printf("\nEnter the month : ");
   scanf("%d", &month);

   printf("\nEnter the date  : ");
   scanf("%d", &date);

   day_of_week(date, month, year);

   return 0;
}



Wednesday, September 18, 2019

Personal Website Template Using HTML and CSS

In this article, I would like to share with you guys that work of my close friend and fellow software engineer Sir Eugene Padernal. I ask his permission to post his work on our website which he agrees upon. Thank you Sir Eugene. It is a personal website that uses HTML and CSS. The code is very simple and easy to understand. I hope you will find his work useful.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.






Sample Program Output






Tuesday, September 17, 2019

Remove Consonants in C

A program that I wrote using C language that will ask the user to give a string and then the program will remove the consonants in a given string and display the results in the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.



Sample Program Output


Program Listing

#include <stdio.h>
#include <string.h>

int check_vowel(char ch)
{
    if (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' || ch == 'I' || ch =='o' || ch=='O' || ch == 'u' || ch == 'U')
      return 1;
    else
      return 0;
}

  char s[200], t[200];
  char reply;
  int c=0, d=0;

int main() {

printf("\n\n");
printf("\tRemove Consonants in C");
     printf("\n\n");
     printf("\tGive a String : ");
     fflush(stdin);
     fgets(s, 200, stdin);
     
        
    for(c = 0; s[c] != '\0'; c++) {
          if(check_vowel(s[c]) == 0) {       
            t[d] = s[c];
            d++;
         }
     }

  t[d] = '\0';
  
  printf("\n\n");
  printf("\tDISPLAY RESULTS");
  printf("\n\n");
  printf("\tOriginal String : %s",s);
  printf("\n\n");
  strcpy(s, t);   
    printf("\tAfter Removing Consonants: %s",s);
  printf("\n\n");
    printf("\n");
  printf("\tEnd of Program");
  return 0;
}






Monday, September 16, 2019

Vowel or Not Using C++

Here is a sample program was written by my friend Sir John Lester Dela Cruz a fellow software engineer this program will ask the user to give a character and then the program will check if the given character is a vowel or not using C++.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.


Program Listing

#include <iostream>

using namespace std;

int main()
{
    char vowel;
    cout << "Enter a letter: ";
    cin >> vowel;
    cout<<endl;
    if(vowel == 'a' || vowel == 'e' || vowel == 'i' || vowel == 'o' || vowel == 'u')
     {
    cout << "Vowel";
     }
    else
    {
    cout << "Consonant, Symbol, Combination of letters and numbers or different characters";
}
    return 0;

}

Records Example in Pascal

In this example program that I wrote using Pascal as my programming language, it will demonstrate how to use records to display the information of a book. I am using Free Pascal as my Pascal compiler in writing this program.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.






Sample Program Output


Program Listing

records_example.pas

Program Records_Example;

Uses Crt;

Type
Str100    = String[100];
TBookRec =
Record
Title, Author, ISBN : Str100;
Price : Real;
End;

Var
    myBookRec : TBookRec;

Begin
        Clrscr;
        Write('Records Example in Pascal');
        writeln;
        Write('Created By Jake R. Pomperada');
        writeln;
        myBookRec.Title  := 'Beginners Guide to C++ Programming';
myBookRec.Author := 'Jake Rodriguez Pomperada';
myBookRec.ISBN   := '978-621-406-195-2';
myBookRec.Price  := 453.71;

        Writeln; Writeln;
Writeln('BOOK DETAILS REPORT');
Writeln;
Writeln('Title:  ', myBookRec.Title);
Writeln('Author: ', myBookRec.Author);
Writeln('ISBN:   ', myBookRec.ISBN);
        Writeln('Price: PHP ', myBookRec.Price:10:2);
        Writeln;
        Write('End of Program');
        Writeln;
Readln;
End.





Swapping of Two Numbers Using Bitwise Operator in C++

A simple  program that I wrote using C++ that will ask the user to give two numbers and then it will swap the arrangement of the two numbers and display the results on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.



Sample Program Output


Program Listing

swap.cpp

// swap.cpp
// Written By Jake R. Pomperada
// September 16. 2019

#include<iostream>

using namespace std;

int main()
{
    int a,b;
    
    cout <<"\n\n";
cout << "\tSwapping of Two Numbers Using Bitwise Operator in C++";
cout << "\n\n";
    cout<<"\tPlease enter 1st number :> ";
    cin>>a;
    cout<<"\tPlease enter 2nd number :>  ";
    cin>>b;
    cout << "\n";
    
    cout << "\tOriginal value of A = " <<a; 
    cout << "\t";
    cout << "\tOriginal value of B = " <<b;
    
    /* Swap two numbers */
    a ^= b;
    b ^=  a;
    a ^= b;

    cout << "\n\n";
    cout << "\tA After Swapping = " <<a;
    cout << "\t";
    cout << "\tB After Swapping = " <<b;
cout << "\n\n";
cout << "\tEnd of Program";
return 0;
}



Basic Math Operations in C++

In this article I would like to share with you simple basic math arithmetic operations in C++ program. The program will ask the user to give two number and then it will perform addition, subtraction, multiplication and division and display the results on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.



Sample Program Output


Program Listing

demo.cpp

#include<iostream>

using namespace std;

int main()
{
    int a,b;
    int mul,div,add,sub;
    cout <<"\n\n";
cout << "\tBasic Math Operations in C++";
cout << "\n\n";
    cout<<"\tPlease enter 1st number :>";
    cin>>a;
    cout<<"\tPlease enter 2nd number :>";
    cin>>b;
    cout << "\n\n";
    mul = a*b;
    cout<<"\tThe product of "<<a<<" and "<<b<<" is "<<mul<<endl;
    div = a/b;
    cout<<"\tThe quotient of "<<a<<" and "<<b<<" is "<<div<<endl;
    add = a+b;
    cout<<"\tThe sum of "<<a<<" and "<<b<<" is "<<add<<endl;
    sub = a-b;
    cout<<"\tThe difference of "<<a<<" and "<<b<<" is "<<sub<<endl;
cout << "\n\n";
cout << "\tEnd of Program";
return 0;
}






Friday, September 13, 2019

AREA AND CIRCUMFERENCE OF A CIRCLE USING QBASIC

A simple program that will ask the user to give the radius of the circle and then the program will compute and display the area and circumference of the circle.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.



Sample Program Output

Program Listing

CLS
LET pie = 3.14
PRINT "AREA AND CIRCUMFERENCE OF A CIRCLE USING QBASIC"
PRINT
PRINT "Created By Jake R. Pomperada"
PRINT
INPUT "Give radius of circle"; r
a = pie * r ^ 2
c = 2 * pie * r
PRINT
PRINT "The area of the circle is"; a
PRINT
PRINT "The circumference of the circle is"; c
PRINT
PRINT "End of Program"
END



Basic Math Operations in Visual Basic 6

In this article, I would like to share with you a sample program that will ask two numbers and then the program will compute the sum, difference, product and quotient of two given numbers using Microsoft Visual Basic 6.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com



Sample Program Output

Program Listing

Private Sub Command1_Click()
Dim sum, multiply, difference, quotient As Integer

sum = Val(Text1.Text) + Val(Text2.Text)
multiply = Val(Text1.Text) * Val(Text2.Text)
difference = Val(Text1.Text) / Val(Text2.Text)
quotient = Val(Text1.Text) * Val(Text2.Text)

Label3.Caption = "The sum is " & sum
Label4.Caption = "The product is " & product
Label5.Caption = "The difference is " & difference
Label6.Caption = "The quotient is " & quotient

End Sub

Private Sub Command2_Click()
End
End Sub