Sunday, August 21, 2022

Square Root in TypeScript

Square Root in TypeScript

 Machine Problem

Write a program that will convert the given number 144 into its square root equivalent 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 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

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


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

/* square_root.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 13, 2022  11:54 AM   Wednesday
   Bacolod City, Negros Occidental
*/
var value_num = 144;
// Converting To Square Root
var square_root = Math.sqrt(value_num);
console.log();
console.log("Square Root in TypeScript\n");
console.log(value_num + " the square root equivalent is " + square_root + ".\n");
console.log("End of Program\n");




Saturday, August 20, 2022

Structure Demonstration in C

Structure Demonstration in C

 A simple program that I wrote to demonstrate how to declare and use structure 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

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


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

/*demo.c

 Author    : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT

 Date      : December 1, 2018  Saturday 11:55 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>

#include <string.h>

struct employee {

  char employees_name[200];

  char position[200];

  int id_number;

  float salary;

};


int main(){

struct employee person;

printf("\n\n");

printf("\tStructure Demonstration in C");

    person.id_number =12345;

    strcpy(person.employees_name,"Jake Rodriguez Pomperada");

    strcpy(person.position,"Software Quality Assurance Engineer");

    person.salary = 75650.50;

    printf("\n\n");

    printf("\t===== DISPLAY RESULTS =====");

    printf("\n\n");

    printf("\tEMPLOYEE'S ID NUMBER  :  %d ",person.id_number);

    printf("\n");

    printf("\tEMPLOYEE'S NAME       :  %s ",person.employees_name);

    printf("\n");

    printf("\tEMPLOYEE'S POSITION   :  %s ",person.position);

    printf("\n");

    printf("\tEMPLOYEE'S SALARY     :  PHP %.2f",person.salary);

    printf("\n\n");

    printf("\tThank you for Using This Software.");

    printf("\n\n");

    system("PAUSE");

}

    

    

Friday, August 19, 2022

Addition of Four Numbers Using Controllers in AngularJS

Addition of Four Numbers Using Controllers in AngularJS

 Machine Problem

Write a program that uses a controller that will ask the user to give four numbers and then the program will compute the total sum of the four 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 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

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


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


<!-- index.htm

  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

  Date     : August 11, 2021  11:56 AM Wednesday

  Place    : Bacolod City, Negros Occidental

  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com

  Email    : jakerpomperada@gmail.com

 -->

<html>


  <head>

      <title>Addition of Four Numbers Using Controllers in AngularJS</title>

     <script type="text/javascript" src="angular.min.js"></script>

      <script>

        var myApp=angular.module("myModule",[]);

        myApp.controller("Sum_Values",function($scope) {

          $scope.Sum_All=function()

          {

          let sum = 0;



          $scope.sum = ($scope.a + $scope.b + $scope.c + $scope.d);


          $scope.sum = "The total sum is " + $scope.sum + ".";

         

      }


      $scope.Clear_All=function()

          {

          $scope.a = "";

          $scope.b = "";

          $scope.c = "";

          $scope.d = "";

          $scope.sum = "";

      }

    

    

     });

     </script>

 </head>

 <style>

body {

  font-family: arial;

  font-size: 25px;

  font-weight: bold;

}

</style>

 <body ng-app="myModule" ng-controller="Sum_Values">

   <h3>Addition of Four Numbers Using Controllers in AngularJS

   </h3>

 <div>

  <table border="0">

     <tr>

      <td>

      Enter Your First Number

     </td>

       <td>

         <input type="number" ng-model="a"/>

       </td>

      <tr>

      <td>

      Enter Your Second Number

     </td>

       <td>

         <input type="number" ng-model="b"/>

       </td>   

       </tr>

       <tr>

      <td>

      Enter Your Third Number

     </td>

       <td>

         <input type="number" ng-model="c"/>

       </td>   

       </tr>

        <tr>

      <td>

      Enter Your Fourth Number

     </td>

       <td>

         <input type="number" ng-model="d"/>

       </td>   

       </tr>

      <tr>

         <td colspan="10">

           <br>

           <input type="button" ng-click="Sum_All();"

           value="Addition"/>

           <input type="button" ng-click="Clear_All();"

           value="Clear"/>

         </td>

      </tr>

      </table>

     </div><br>

       {{sum}}

    </div>

  </body>

</html>



Thursday, August 18, 2022

High, Middle and Low Number in C

High, Middle and Low Number in C

 Machine Problem

Write a program that will ask the user to give three numbers and then the program will check and evaluate which of the three numbers is the highest, middle and the lowest number using functions.

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

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


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

/* numbers.c
   Author    : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date      : November 28,2018  Wednesday  3:13 PM
   Location  : Bacolod City, Negros Occidental Philippines.
   Website  : http://www.jakerpomperda.com 
   Emails   : jakerpomperada@jakerpomperada.com and jakerpomperada@gmail.com
*/  
#include <stdio.h>
// function prototype declaration  
int high_number(int,int,int);

int main() {
int a=0,b=0,c=0;
printf("\n\n");
printf("\tHigh, Middle and Low Number in C");
printf("\n\n"); 
printf("\tEnter First Number  : ");
scanf("%d",&a);
printf("\tEnter Second Number : ");
scanf("%d",&b);
printf("\tEnter Third Number  : ");
scanf("%d",&c);    
high_number(a,b,c);
}
/* function high_number */
int high_number(int value1,int value2, int value3) {
  int high_value=0,low_value=0,middle_value=0;
   /* Check For Higher Number */
  if (value1 >= value2 && value1 >= value3) {
        high_value = value1;
    }
    else if (value2 >= value1 && value2 >= value3) {
        high_value = value2;
    }
    else if (value3 >= value1 && value3 >= value2) {
        high_value = value3;
    }

/* Check For Low Number */
  if (value1 <= value2 && value1 <= value3) {
        low_value = value1;
    }
    else if (value2 <= value1 && value2 <= value3) {
        low_value = value2;
    }
    else if (value3 <= value1 && value3 <= value2) {
        low_value = value3;
    }

 /*Check For Middle Value */
   if (value1 <= value2 && value1 >= value3 ) 
         {
        
        middle_value = value1;
    }
else  if (value2 <= value1 && value2 >= value3) 
      
         {
        
        middle_value = value2;
    }
else  if (value3 <= value1 && value3 >= value2) 
         {
        
        middle_value = value3;
    }

/* Code for check all the possible arrangement of values */
 /* Check for first value   */
else  if (value1 >= value2 && value1 <= value3) 
         {
       middle_value = value1;
    }
 /* Check for second value  */  
else  if (value2 >= value1 && value2 <= value3) 
         {
    
        middle_value = value2;
    }
 /* Check for third value */   
else  if (value3 >= value1 && value3 <= value2) 
         {
  middle_value = value3;
    }
printf("\n\n");
printf("\t===== DISPLAY RESULT =====");
printf("\n\n");
printf("\t%d is the Biggest number.",high_value);
printf("\n");
printf("\t%d is the Middle number.",middle_value);
printf("\n");
printf("\t%d is the Lowest number.",low_value);
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n"); 
}

Tuesday, August 16, 2022

Factorial a Number Using Function in C

Factorial a Number Using Function in C

 

Machine Problem

Write a program that uses a function that will ask the user to give a number and then the program will compute the factorial equivalent of the given number by the user.

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

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


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

// factorial.cpp

// Author    : Mr. Jake R. Pomperada, BSCS,MAED-IT

// Date      : August 26, 2018   Sunday  5:19 PM

// Location  : Bacolod City, Negros Occidental Philippines.

// Website   : http://www.jakerpomperda.com

// Email     : jakerpomperada@jakerpomperada.com and jakerpomperada@gmail.com



#include <iostream>

#include <conio.h>


using namespace std;


 // function prototype declaration  

int factorial(int);  


int main()

{  

                

int num_input=0;

int solve=0;


cout <<"\n\n";

cout <<"\tFactorial a Number Solver";

cout <<"\n\n";

cout<<"\tGive a Number : ";

cin>>num_input;

solve= factorial(num_input);   

cout <<"\n\n";                                      

cout<<"\tThe factorial value of "<<num_input<<" is "<<solve<<".";

cout <<"\n\n";

cout << "\tEnd of Program";

cout <<"\n\n"; 

getch();

}


// function factorial


int factorial(int a)

{

int fact=1;


while(a>=1)

{

fact=fact*a;

a--;

}


return fact;

}


 



Monday, August 15, 2022

Area and Circumference of the Circle Using JOptionpane in Java

Area and Circumference of the Circle Using JOptionPane in Java

 Machine Problem

 Write a program that input from the user the radius of a circle as an integer and prints the circle's circumference and area using the predefined constant Math.PI.

Use the following formulas (r is the radius):

circumference = 2 PI r

area = PI r 2

 

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

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


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

Area_Circle.java

/* Write a program that input from the user the radius of a circle

as an integer and prints the circle's circumference and area

using the predefined constant Math.PI.


Use the following formulas (r is the radius):

circumference = 2 PI r

area = PI r 2

 * 

 */


import javax.swing.JOptionPane;

import java.text.DecimalFormat;

import java.lang.Math;  


public class Area_Circle {

private static final DecimalFormat df = new DecimalFormat("0.00");


public static void main(String[] args) {

// TODO Auto-generated method stub

// TODO Auto-generated method stub

  String r = 


         JOptionPane.showInputDialog( "Enter the radius of the circle:  " );

       double radius = Double.parseDouble(r); 

                  

     //Area = PI*radius*radius       

      double area=(Math.PI*(radius*radius));  

      //Circumference = 2*PI*radius

      double circumference= Math.PI * 2*radius;

      

      JOptionPane.showMessageDialog( null,  "The Area of the Circle :  " + df.format(area) + "\n"

        + "The Circumference of the Circle :  " + df.format(circumference)

        , "The Result", JOptionPane.INFORMATION_MESSAGE );


}


}


Sunday, August 14, 2022

Simple Login Using JS and PHP

Simple Login Using JS and PHP

A simple login and registration program that I wrote using JavaScript, PHP and MySQL.

 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

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


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.












Saturday, August 13, 2022

Simple CRUD Application Using JavaScript and PHP

Simple CRUD Application Using JavaScript and PHP

 A simple crud application using JavaScript and PHP 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

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


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.