Friday, October 8, 2021

Reverse a Number in Java

 A simple program to ask the use to give a number and then the program will reverse the given number 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.





Program Listing

 

import java.util.Scanner;


public class Reverse_Number {

    

    public static void main (String [] args)

    {

        

        int number=0, reverse=0;

        

        Scanner input = new Scanner (System.in);

        

        System.out.println("\n");

        System.out.println("\tReverse a Number in Java ");

        System.out.println("\n");

      

        System.out.println("\tGive Number : ");

        number= input.nextInt();

        

        int given_number = number; 

        

        while(number != 0)   

        {    

        int remainder = number % 10;  

        reverse = reverse * 10 + remainder;  

        number = number/10;  

        }  

        System.out.println("\n");

        System.out.println("\tThe given number is " + given_number);

        System.out.println("\tThe reverse of the given number is: " + reverse);  

        System.out.println("\n");

        System.out.println("\tEnd of Program");

        System.out.println("\n");

    }

}


    

Thursday, October 7, 2021

Student Form Entry in Java

Student Form Entry in Java

 A simple program that demonstrate the use of scanner, strings, and integers in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.




Program Listing

 

import java.util.Scanner;


public class StudentInfo {

    

    public static void main (String [] args)

    {

        /*variables declaration */

        String name;

        String course;

        String gender;

        long studNum;

        int age=0;

        

        Scanner i = new Scanner (System.in);

        

        /*Form*/

        System.out.println("\tSTUDENT FORM ENTRY IN JAVA ");

        System.out.println("Enter Your Name: ");

        name= i.nextLine();

        System.out.println("Enter Your Course: ");

        course= i.nextLine();

        System.out.println("Enter Your Gender: ");

        gender= i.nextLine();

        System.out.println("Enter Your Student Number: ");

        studNum= i.nextInt();

        System.out.println("Enter Your Age: ");

        age= i.nextInt();

        

        /*Output*/

        System.out.println("Your name is: " +name);

        System.out.println("Your course is: " +course);

        System.out.println("Your gender is: " +gender);

        System.out.println("Your student number is: " +studNum);

        System.out.println("Your age is: " +age);

        

    }

}


    

Wednesday, October 6, 2021

Decimal, Whole Number, and Strings in C++

Decimal, Whole Numbers, and Strings in C++

  Machine Problem

   Write a program that would ask 2 decimal numbers,  2 whole numbers and 3 shapes.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.




Program Listing

/* input.cpp

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

   www.jakerpomperada.com and www.jakerpomperada.blogspot.com

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental

   

   Machine Problem

   

    Write a program that would ask 2 decimal numbers,

2 whole numbers and 3 shapes.

*/


#include <iostream>

#include <iomanip>

#include <string.h>


int main()

{

double a=0.00,b=0.00;

int c=0,d=0;

char shape1[100],shape2[100],shape3[100];

std::cout <<"\n\n";

std::cout << "\tDecimal, Whole Numbers, and Strings in C++";

std::cout <<"\n\n";

std::cout << "\tEnter Two Decimal Numbers : ";

std::cin >> a >> b;

std::cout << "\tEnter Two Integer Numbers : ";

std::cin >> c >> d;

  std::cin.ignore(256, '\n');

std::cout << "\tEnter First Shape : ";

gets(shape1);

std::cout << "\tEnter Second Shape : ";

gets(shape2);

std::cout << "\tEnter Third Shape : ";

gets(shape3);

std::cout <<"\n\n";

std::cout <<"\tFirst Decimal Number  : " << a;

std::cout <<"\n";

std::cout << "\tSecond Decimal Number : " << b;

std::cout <<"\n";

std::cout << std::fixed << std::showpoint;

    std::cout << std::setprecision(2);

std::cout << "\n\n";

std::cout <<"\tFirst Integer Number  : " << c;

std::cout <<"\n";

std::cout <<"\tSecond Integer Number : " << d;

std::cout <<"\n\n";

std::cout <<"\tFirst Shape           : " << shape1;

std::cout <<"\n";

std::cout <<"\tSecond Shape          : " << shape2;

std::cout <<"\n";

std::cout << "\tThird Shape           : " << shape3;

std::cout <<"\n\n";

std::cout <<"\tEnd of Program";

std::cout <<"\n\n";

}

Greet Yourself in AngularJS

Greet Yourself in AngularJS

 A simple program to ask the user to give name and then the program will greet the user 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.





Program Listing

index.htm

<!-- index.htm

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

  Date     : October 3, 2021  Sunday  10:26 AM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head> 

<title> Greet yourself in AngularJS </title>

</head>

<style>

p {

   color:black;

   font-family: "arial";

   font-style: bold;

   font-size: 18px;

  }

  

h3{

   font-family: "arial";

   font-style: bold;

   font-size: 20px;

  }

  

 input[type='text'] 

   { 

   color:black;

   font-family: "arial";

   font-size: 18px;

   font-style: bold;

   }

 </style>

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

<body>

<br><br>

<h3>Greet Yourself in AngularJS </h3>

<div ng-app="">

    <p>Give Your Name &nbsp; &nbsp;&nbsp;<input type="text" size="50" ng-model="name"></p>

<p>Hello <b>{{ name | uppercase }}. </b></p>

</div>.

</body>

</html>



Tuesday, October 5, 2021

Word Count in JavaScript

Word Count in JavaScript

 A simple program that I wrote that will ask the user to give a string or sentence and then the program will count the number of words in the given string or sentence using JavaScript programming.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.





Program Listing

word.htm

<html>

  <title>Word Count in JavaScript </title>

 <body>

  <style type="text/css">

 

  body {

       font-family: arial;

       font-weight: bold;

       font-size: 15px;


  }


  </style>

  <script type="text/javascript">

function countWords(){

s = document.getElementById("inputString").value;

s = s.replace(/(^\s*)|(\s*$)/gi,"");

s = s.replace(/[ ]{2,}/gi," ");

s = s.replace(/\n /,"\n");

document.getElementById("wordcount").value = s.split(' ').length;

}


function clear_text_area() {

document.getElementById("wordcount").value = "";

document.getElementById("inputString").value = "";

document.getElementById("inputString").focus();

}

</script>

<h1>Count Words Using JavaScript </h1>

<h4> Jake Rodriguez Pomperada, MAED-IT, MIT</h4>

<form name="form1" method="post" action="">

  <textarea name="inputString" id="inputString" cols="50" rows="4"></textarea>

<br /><br><br>


Number of Words  &nbsp;&nbsp;<input name="wordcount" id="wordcount" type="text" value="" size="6"><br><br>

<input type="button" name="Convert" value="Count Words" onClick="countWords();"> &nbsp;&nbsp;&nbsp;&nbsp;

<input type="button" name="Clear" value="Clear" onClick="clear_text_area();"> 

</form>

</body>

</html>

Monday, October 4, 2021

Hyperlinks in HTML

Hyperlinks in HTML

 A simple program to demonstrate how to declare and use hyperlinks in a web page using HTML and CSS.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.






Program Listing

index.htm

<html>

  <title>Simple HTML Document </title>

  <style>

 

  body {

  font-family: arial;

  font-weight: bold;

  font-size: 20px;

      color : white;


  }


    h1 {color:black; font-size: 45px;

        }

  </style>

  <body bgcolor="lightblue">

  <h1 align="center"> This is an HTML Document </h1>

  <a href="second.htm" title="Click here to go to second page.">

  Second Page </a>

 

  </body>

  </html>


second.htm

<html>

  <title>Simple HTML Document </title>

   <style>

 

  body {

  font-family: arial;

  font-weight: italic;

  font-size: 20px;

  color:red;


  }

  </style>

  <body bgcolor="lightgreen">

  <h1 align="center"> This is the second document </h1>

  <a href="index.htm" title="Click here to go back.">

  Main Page </a>

  </body>

  </html>


Sunday, October 3, 2021

Word Count in C++

Word Count in C++

 A simple program to ask the user to give a string and then the program will count the number of words in the given string 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.




Program Listing

#include <iostream>

#include <string>


int main ()

{

    char str[100];

    int count = 0, a=0; 

    

std::cout <<"\n\n";

    std::cout <<"\tWord Count in C++";

    std::cout <<"\n\n";

    std::cout << "\tGive a string : ";

    gets(str);

    for (a = 0; str[a] != '\0';a++)

    {

        if (str[a] == ' ')

            count++;    

    }

    std::cout <<"\n\n";

    std::cout << "\tNumber of words : " << count + 1;

    std::cout <<"\n\n";

    std::cout <<"\tEnd of Program";

    std::cout <<"\n";

    return 0;

}

Saturday, October 2, 2021

Ordinal Numbers in C

Ordinal Numbers in C

 A simple program that will ask the user to give number and then the program will display the list of ordinal numbers 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.






Program Listing

#include <stdio.h>


const char *get_suffix(int num)

{

     switch(num)

     {

         case 10:

         case 11:

         case 12:

         case 13:

             return "th";

         default:

         {

             switch(num % 10)

             {

                 case 1: return "st";

                 case 2: return "nd";

                 case 3: return "rd";

                 default:

                     return "th";

             }

         }

     }

}


int main()

{

     


      int years = 0,i=0;

      printf("\n\n");

      printf("\tOrdinal Numbers in C");

      printf("\n\n");

      printf("\tHow many years: ");

      scanf("%d", &years);

    

      for(i = 1; i <= years; ++i) {

    printf("\t");

         printf("%d%s year\n", i, get_suffix(i));

         }

     printf("\n\n");

     printf("\tEnd of Program");

     printf("\n\n");

}


Friday, October 1, 2021

Hello World in Visual Basic 6

Hello World in Microsoft Visual Basic 6

 A simple hello world program in Microsoft Visual Basic 6 that I wrote.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.




Program Listing

Private Sub Form_Load()

MsgBox ("Hello World in Visual Basic 6")

End Sub