Friday, August 26, 2022

Personal Information Using Swing in Java

 Machine Problem 

Create a Java JPanel/JOption program that will display your Personal Information and  Education Background.


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

package demo;


/*

 * H. Create a Java JPanel/JOption program that will display display your Personal Information and 

Education Background


 */


import javax.swing.JOptionPane;



public class Personal_Swing {


public static void main(String[] args) {

// TODO Auto-generated method stub

String student_name = 

         JOptionPane.showInputDialog( "What is your name? " );

      

      String home_address = 

         JOptionPane.showInputDialog( "What is your home address? " );

      

      String mobile_number = 

         JOptionPane.showInputDialog( "What is your mobile number? " );

            

      String email_address  = 

         JOptionPane.showInputDialog( "What is your email address? " );

      

            

      String course = 

         JOptionPane.showInputDialog( "What is your course you finished in college? " );

      

  String school  = 

         JOptionPane.showInputDialog( "What is your school? " );

            

  String  year_graduated  = 

         JOptionPane.showInputDialog( "What year you graduate in college? " );

 

  JOptionPane.showMessageDialog( null, "\n" + "PERSONAL INFORMATION" + "\n\n" 

    + "Student Name   : " + student_name.toUpperCase()  + "\n"

      + "Home Address      : " + home_address.toUpperCase()  + "\r\n"

      + "Mobile Number     : " + mobile_number  + "\r\n"

      + "Email Address     : " + email_address  + "\r\n\n" 

      + "EDUCATIONAL BACKGROUND" + "\r\n\n"

      + "Course Graduated  : " + course.toUpperCase()  + "\r\n"

      + "School Graduated  : " + school.toUpperCase()  + "\r\n"

      + "Year Graduate     : " + year_graduated + "\r\n"

      , "Student Alumni Record", JOptionPane.INFORMATION_MESSAGE );



}


}




Thursday, August 25, 2022

Addition of Four Numbers Using Pointers in C

Addition of Four Numbers Using Pointers in C

 A simple program to ask the user to give four numbers and then the program will compute the sum of the four numbers using 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

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


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

/*addition.c
 Author   : Jake Rodriguez Pomperada, MAED-IT, MIT
 Student, Northern Negros State College of Science and Technology
 Address  : Brgy. Old Sagay, Sagay City, Negros Occidental, Philippines
 Email    : jakerpomperada@gmail.com
 Tool     : Dev C++ Version 5.11
 Date     : November 26, 2018  Monday 9:15 AM 
*/
#include <stdio.h>
 
int main()
{
   int first=0, second=0,third=0,fourth=0; 
   int *a,*b,*c, *d;
   int sum=0;
   printf("\n\n");
   printf("\tAddition of Four Numbers Using Pointers in C");
   printf("\n\n");
   printf("\tGive Four Numbers : ");
   scanf("%d%d%d%d",&first,&second,&third,&fourth);
   a = &first;
   b = &second;
   c = &third;
   d = &fourth;
  sum = *a + *b + *c + *d;
  printf("\n\n");
  printf("\t===== DISPLAY RESULTS =====");
  printf("\n\n");
  printf("\tThe total sum of %d, %d, %d, and %d is %d."
          ,first,second,third,fourth,sum);
  printf("\n\n");
  printf("\tEND OF PROGRAM");
  printf("\n\n");
 }

Wednesday, August 24, 2022

Inverted Triangle in Java

Inverted Triangle in Java

 A simple program to display inverted triangle image 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

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


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


public class Inverted_Triangle {

public static void main(String[] args) {
// TODO Auto-generated method stub
int rows = 8;
for(int i=1; i<=rows; i++){//do for rows in pyramid
   for(int j=1; j<=i; j++){
    
     System.out.print(" ");//print space
       
}
  
  
for(int k=i; k<=rows; k++){

     System.out.print("0"+"");
 

}
for (int y=1; y<=1; y++){
   System.out.print("1");  // center 1 numbers display      
}    
for(int k=i; k<=rows; k++){

     System.out.print("0");
 

}
System.out.println();
}

System.out.print("\t 1"); 

}

}

Tuesday, August 23, 2022

Pointer Address in C++

Pointer Address in C++

 A simple program to demonstrate how to declare and use pointers in 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 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

#include <iostream>


using namespace std;

int main()
{
int  *ptr;
ptr=new int;
*ptr=24;
cout << "\n\n";
cout << "\tPointer Address in C++";
cout << "\n\n";
cout<<"\tThe value of y="<<*ptr<<endl
    <<"\tThe address of y is "<<ptr<<endl;
cout<<endl;
system("pause");
return 0;
}


Monday, August 22, 2022

Sum and Product of Two Numbers in C

Sum and Product of Two Numbers in C

 Machine Problem

Create and Design a program that will ask the user to give two numbers and then the program will compute the sum and product of the given 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

// add_product.c

// Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT

// Date     : November 11, 2018  Sunday 11:02 PM

// Location : Bacolod City, Negros Occidental

// Tool     : Dev C++ Version 5.11

// Website  : http://www.jakerpomperada.com

// Email    : jakerpomperada@jakerpomperada.com


#include <stdio.h>


int main() 

 {

 

   int a=0,b=0,sum=0,product=0;

   system("COLOR F0");

   printf("\n\n");

   printf("\tSum and Product of Two Numbers in C");

   printf("\n\n");

   printf("\tGive First Number  : ");

   scanf("%d", &a);

   printf("\n");

   printf("\tGive Second Number : ");

   scanf("%d", &b);

   

   // Compute the sum and product

   sum = (a+b);

   product = (a*b);

   

   printf("\n");

   printf("\tThe sum of %d and %d is %d.",a,b,sum);

   printf("\n\n");

   printf("\tThe product of %d and %d is %d.",a,b,product);

   printf("\n\n\n");

   printf("\tEND OF PROGRAM");

   printf("\n\n");

}


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>