Saturday, February 25, 2023

Subtract Two Numbers Using Java

 A simple program to subtract two given numbers using Java 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

/******************************************************************************


Welcome to GDB Online.

GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,

C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.

Code, Compile, Run and Debug online from anywhere in world.


*******************************************************************************/

public class Main

{

public static void main(String[] args) {

int num1 = 200;

        int num2 = 50;

        int difference = num1 - num2;

        System.out.println("The difference between " + num1 + " and " + num2 + " is " 

        + difference + ".");


}

}


Friday, February 24, 2023

Subtract Two Numbers Using Functions and Pointers in C++

Subtract Two Numbers Using Functions and Pointers in C++

 A program that will ask the user to give two numbers and then the program will compute the difference of two given numbers using a function and pointers 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 subtract(int num1, int num2, int* result) { *result = num1 - num2; } int main() { int num1, num2; int result; cout <<"\n\n"; cout << "\tSubtract Two Numbers Using Functions and Pointers in C++"; cout <<"\n\n"; cout << "\tEnter the first number: "; cin >> num1; cout <<"\n\n"; cout << "\tEnter the second number: "; cin >> num2; subtract(num1, num2, &result); cout <<"\n\n"; cout << "\tThe Result: " << result << endl; cout <<"\n\n"; cout << "\tEnd of Program"; cout <<"\n\n"; return 0; }

Thursday, February 23, 2023

Point of Sale in C

Point of Sale in C

 A simple point of sale program that I wrote using C programming language.

 A program that will add the sum of two numbers using C# and WPF thank you to my friend and fellow software engineer Tom for this code for sharing to us.

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() { char itemName[200]; int quantity=0.00; float price, totalAmount = 0; printf("\n\n"); printf("\tPoint of Sale in C\n\n"); printf("\tEnter item name: "); gets(itemName); printf("\tEnter quantity: "); scanf("%d", &quantity); printf("\tEnter price: "); scanf("%f", &price); totalAmount = quantity * price; printf("\n\n**********PRINTED INVOICE**********************\n\n"); printf("\tItem Name: %s\n", itemName); printf("\tTotal Quantity: %d\n", quantity); printf("\tPrice per item: $%5.2f\n\n", price); printf("\tTotal amount: PHP %5.2f\n\n", totalAmount); printf("************************************************\n"); printf("\n\n"); printf("\tEnd of Program\n"); return 0; }

Add Two Numbers Using C# and WPF

Add Two Numbers Using C# and WPF

 A program that will add the sum of two numbers using C# and WPF thank you to my friend and fellow software engineer Tom for this code for sharing to us.

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

using System.Windows;


namespace AddTwoNumbers

{

  /// <summary>

  /// Interaction logic for MainWindow.xaml

  /// </summary>

  public partial class MainWindow : Window

  {

    public MainWindow ()

    {

      InitializeComponent();

    }

// Add Button Code

    private void AddButton_Click (object sender, RoutedEventArgs e)

    {

      int num1 = int.Parse(txtFirstNum.Text);

      int num2 = int.Parse(txtSecondNum.Text);

      int result = num1 + num2;


      txtResult.Text = result.ToString();

    }


// Clear Button Code

    private void btnClear_Click (object sender, RoutedEventArgs e)

    {

      txtResult.Text = txtFirstNum.Text = txtSecondNum.Text = "";

    }

  }

}


Tuesday, February 21, 2023

Word Count in Pascal

Word Count in Pascal

 A program that will ask the user to give a sentence or a series of strings. Our program will count the number of words that can be found on the given sentences or a series of strings using 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 WordCount;


var

  sentence: string;

  count: integer;

  i: integer;

  inWord: boolean;


begin

  Writeln;

  Write('Word Count in Pascal');

  writeln;

  writeln('Enter a sentence:');

  readln(sentence);

  

  count := 0;

  inWord := false;

  

  for i := 1 to length(sentence) do

  begin

    if sentence[i] in ['a'..'z', 'A'..'Z', '0'..'9'] then

    begin

      if not inWord then

      begin

        inWord := true;

        count := count + 1;

      end;

    end

    else

    begin

      inWord := false;

    end;

  end;

  

  writeln('The sentence "', sentence, '" contains ', count, ' words.');

  

  readln; 

end.



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>