Thursday, September 19, 2019

Delete a Specific Word From a Sentence in C

Write a program to remove a word from a sentence given by the user using the C programming language.

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

delete.c

/*delete.c
 Author    : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
 Date      : December 1, 2018  Saturday 9:40 AM
 Location  : Bacolod City, Negros Occidental
 Website   : http://www.jakerpomperada.com
 Emails    : jakerpomperada@jakerpomperada.com
             jakerpomperada@gmail.com
             jakerpomperada@yahoo.com
             jakerpomperada@aol.com
*/
#include <stdio.h>
#include <stdlib.h>
int search(char[], char[]);
int delete_word(char[], char[], int);
int main()
{
    char str[80], word[50];
    int index=0;
printf("\n\n");
  printf("\t\tDelete a Specific Word From a Sentence");
printf("\n\n");
    printf("\tEnter a Sentence  :  ");
    gets(str);
    printf("\n");
    printf("\tEnter Word to Delete : ");
    gets(word);
    printf("\n");
    index = search(str, word);
    if (index !=  - 1)
    {
        delete_word(str, word, index);
        printf("\tString without word: %s", str);
    }
    else
    {
        printf("\n");
printf("\tThe word not present in the string.");
    }
    printf("\n\n");
    printf("\tThank you for Using This Software.");
    printf("\n\n");
    system("PAUSE");
}
int search(char str[], char word[])
{
    int l, i, j;
    for (l = 0; word[l] != '\0'; l++);
    for (i = 0, j = 0; str[i] != '\0' && word[j] != '\0'; i++)
    {
        if (str[i] == word[j])
        {
            j++;
        }
        else
        {
            j = 0;
        }
    }

    if (j == l)
    {
     return (i - j);
    }
    else
    {
        return  - 1;
    }
}

int delete_word(char str[], char word[], int index)
{
    int i, l;
    for (l = 0; word[l] != '\0'; l++);
    for (i = index; str[i] != '\0'; i++)
    {
        str[i] = str[i + l + 1];
    }
}


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;
}