Tuesday, February 21, 2023

Is Computer Programming A Gift or a Skill?

Bubble Sort in C++ With User Input

Bubble Sort in C++ With User Input

 A program that will ask the user to give a series of numbers and then it will display the unsorted and sorted list of numbers given by the user using bubble sort algorithm using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>


using namespace std;


int main() {

   int n=0, temp=0;

   

   cout <<"\n\n";

   cout <<"\tBubble Sort in C++ With User Input";

   cout <<"\n\n";

   cout << "\tHow Many Items? : ";

   cin >> n;

   cout  <<"\n\n";

   

   int arr[n];

  

   for(int i = 0; i < n; i++) {

    cout << "\tEnter item value at item no. " << i+1 << " : ";

      cin >> arr[i];

   }


cout  <<"\n\n";

cout << "\tUnSorted Array" << endl;

cout  <<"\n\n";

cout << "\t";

   for(int i = 0; i < n; i++) {

      cout << arr[i] << " ";

   }

   

   // Bubble Sort

   for(int i = 0; i < n-1; i++) {

      for(int j = 0; j < n-i-1; j++) {

         if(arr[j] > arr[j+1]) {

            // Swapping

            temp = arr[j];

            arr[j] = arr[j+1];

            arr[j+1] = temp;

         }

      }

   }



   cout  <<"\n\n";

   cout << "\tSorted Array: " << endl;

   cout << "\n\n";

   cout << "\t"; 

   for(int i = 0; i < n; i++) {

      cout <<arr[i] << " ";

   }

   cout  <<"\n\n";

   cout << "\tEnd of Program" << endl;

   return 0;

}


Sunday, February 19, 2023

What is the first antivirus software in the world?

What is a Computer Virus? How we can protect our Computer?

Meters To Feet Using Functions in Pascal

Meters To Feet Using Functions in Pascal

 A simple program that I wrote that will ask the user to give length in meters and then it will convert into feet equivalent using a function in Pascal 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing

program MetersToFeet; function MetersToFeet(meters: real): real; begin MetersToFeet := meters * 3.28084; end; var meters, feet: real; begin writeln; write('Meters To Feet Using Functions in Pascal'); writeln; writeln; write('Enter Length in Meters : '); readln(meters); feet := MetersToFeet(meters); writeln; writeln(meters:5:2, ' meters = ', feet:5:2, ' feet'); writeln; write('End of Program'); writeln; end.

What is Cyber Security and It's Benefits?

Saturday, February 18, 2023

Today's Date Using Date Filter in AngularJS

Today's Date Using Date Filter in AngularJS

 Machine Problem

Write a program that uses date filter that will display the today's date, including the day on the screen using AngularJS.

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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

<!-- index.htm Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT Date : August 1, 2021 11:19 AM Sunday Place : Bacolod City, Negros Occidental Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com Email : jakerpomperada@gmail.com --> <html> <head> <title>Today's Date Using Date Filter in AngularJS</title> </head> <style> body { font-family: arial; font-size: 20px; font-weight: bold; } </style> <script type="text/javascript" src="angular.min.js"> </script><br> <h3> Today's Date Using Date Filter in AngularJS </h3> <body> <div ng-app="dateApp" ng-controller="PresentDateController"> <p> Today's Date : {{ Present_Date }} </p> </div> </body> <script> var dtApp = angular.module('dateApp', []); dtApp.controller( 'PresentDateController', function ($scope, $filter) { $scope.Present_Date = $filter('date')(new Date(), 'fullDate'); } ); </script> </body> </html>

Friday, February 17, 2023

Reverse Three Numbers in C++

Reverse Three Numbers in C++

  A program that will ask the user to give three numbers and then the program will reverse the arrangement of the three given numbers and display the results on the screen using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing

#include <iostream> using namespace std; int main() { int n=0; cout <<"\n\n"; cout <<"\tReverse Three Numbers in C++\n\n"; cout <<"\tGive Three Digit Numbers : "; cin >> n; cout <<"\n\n"; cout <<"\tThe reversal value " << n % 10 << (n / 10) % 10 << (n / 100) <<"."; cout <<"\n\n"; cout <<"\tEnd of Program"; cout <<"\n\n"; return 0; }

Thursday, February 16, 2023

Reverse Three Numbers in C

Reverse Three Numbers in C

 A program that will ask the user to give three numbers and then the program will reverse the arrangement of the three given numbers and display the results on the screen using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <stdio.h> int main() { int n=0; printf("\n\n"); printf("\tReverse Three Numbers in C\n\n"); printf("\tGive three digit numbers : "); scanf("%d", &n); printf("\n\n"); printf("\tThe reversal value %d%d%d.\n", n % 10, (n / 10) % 10, n / 100); printf("\n\n"); printf("\tEnd of Program"); printf("\n\n"); return 0; }

Wednesday, February 15, 2023

Meters To Feet Using Pointers in C

 A simple program to ask the user to give length in meters and convert it into feet equivalent using pointers in 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <stdio.h> void meters_to_feet_conversion(double* meters, double* feet) { *feet = (*meters * 3.28084); } int main() { double meters=0.00, feet=0.00; printf("\n\n"); printf("\tMeters To Feet Using Pointers in C\n\n"); printf("\tGive length in meters: "); scanf("%lf", &meters); meters_to_feet_conversion(&meters, &feet); printf("\n\n"); printf("\tDisplay Result\n\n"); printf("\t%.2f meters is equal to %.2f feet", meters, feet); printf("\n\n"); printf("\tEnd of Program"); printf("\n\n"); return 0; }

Tuesday, February 14, 2023

Meter To Feet in C

Meter To Feet in C

 A program that will ask the user to give length in meter and then it will convert it into feet equivalent in 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <stdio.h> void main() { float meter=0.00; float feet=0.00; printf("\n\n"); printf("\tMeter To Feet in C\n\n"); printf("\tGive Length in Meters : "); scanf("%f", &meter); feet = (meter*3.26); printf("\n\t%5.2f meter in feet = %5.2f \n",meter,feet); printf("\n\n"); printf("\tEnd of Program\n"); }

Heap Sort in C++

Heap Sort in C++

 A program that I wrote to demonstrate the concept of heap sort algorithm using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing



  #include <iostream>

  

  using namespace std;

  

  void comparison(int arr[], int n, int i) {

    int max = i; 

    int leftChild = 2 * i + 1;

    int rightChild = 2 * i + 2;

  

    

    if (leftChild < n && arr[leftChild] > arr[max])

      max = leftChild;

  

   

    if (rightChild < n && arr[rightChild] > arr[max])

      max = rightChild;

  


    if (max != i) {

      swap(arr[i], arr[max]);

      comparison(arr, n, max); 

    }

  }

  

  

  void heapSort(int arr[], int n) {

    

    for (int i = n / 2 - 1; i >= 0; i--)

      comparison(arr, n, i);

  

    

    for (int i = n - 1; i >= 0; i--) {

      swap(arr[0], arr[i]); 

  

      comparison(arr, i, 0); 

    }

  }

  

 

  void display_results(int arr[], int n) {

    cout <<"\t";

for (int i = 0; i < n; ++i)

      cout <<" " << arr[i] << " ";

    cout << "\n";

    

  }

  

  

  int main() {

    int array_values[] = {400, -1, -78, 212, 162, 8, 67, 35};

    int n = sizeof(array_values) / sizeof(array_values[0]);

    

    cout << "\n\n";

    cout << "\tHeap Sort in C++\n\n";

    cout << "\tOriginal Array Values\n\n";

    display_results(array_values, n);

    heapSort(array_values, n);

  

     cout << "\n\n";

    cout << "\tSorted Array Values\n\n";

    display_results(array_values, n);

    cout <<"\n\n";

    cout <<"\tEnd of Program";

    cout <<"\n\n";

   }