Tuesday, October 12, 2021

Count Digits in Python

 In this program that I wrote will ask the user to give a string which contains a digits and then the program will count the number of digits in a giving string or sentence using Python programming language. I am using Pycharm as my text editor in writing this program. I hope you will learn something in this sample program.

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.





Program Listing

# digits.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# jakerpomperada.com and jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental
print()
print("\tCount Digits in Python")
print()
val_str = input('Give a String : ')

count = 0
for char in val_str:
if char.isdigit():
count += 1
print()
print(f"Number of Digits: {count}")
print()
print("\tEnd of Program")
print()


Monday, October 11, 2021

Count Vowels in Python

Count Vowels in Python

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





Program Listing

# vowels.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# jakerpomperada.com and jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental
print()
print("\tCount Vowels in Python")
print()
val_str = input('Give a String : ')

vowels=0
for i in val_str:
if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'):
vowels=vowels+1
print()
print(f"Number of Vowels: {vowels}")
print()
print("\tEnd of Program")
print()

Sunday, October 10, 2021

ng app Directives in AngularJS

ng-app directive in AngularJS

 A simple program to show how to declare and use ng-app directive in 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.





Program Listing


<!-- index.htm

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

  Date     :  October 10, 2021  3:37 PM  Sunday

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head> 

<title>ng-app directive in AngularJS</title>

</head>

<style>

body {

   font-family: "arial";

   font-style: bold;

   font-size: 18px;

  }

 </style>

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

<h3>ng-app directive in AngularJS</h3>

<body>

<div ng-app="">

{{'AngularJS Programming '}}

</div>

</body>

</html>


Hello World in TypeScript

Hello World in TypeScript

 A simple program that I demonstrate how create a hello world in TypeScript 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.




Program Listing


// greet.ts

// Jake Rodriguez Pomperada, MAED-IT, MIT

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

// jakerpomperada@gmail.com


var greet: string = "Hello World !!! Welcome To TypeScript";

console.log('\n',greet);

Saturday, October 9, 2021

Sum of All Odd and Even Numbers in Java

Sum of All Odd and Even Numbers in Java

 Machine Problem

Write a program using Java to ask the user to give a number  and then the program will sum all the odd and even numbers of the given number, 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.




/*  Odd_Even.java

 * 

 *  Prof. Jake Roderiguez Pomperada, MAED-IT, MIT

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

 *  jakerpomperada@gmail.com

 *  Bacolod City, Negros Occidental Philippines

 * 

 * 

Machine Problem


Write a program using Java to ask the user to give a number 

and then the program will sum all the odd and even numbers of

the given number, and display the results on the screen.

 */




import java.util.Scanner;


  


class Odd_Even


{

   

    

   public static void main(String args[])


   {


        int a=0,num=0;  

        int odd_numbers_sum=0,even_numbers_sum=0;

      

       Scanner input = new Scanner(System.in);


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

       System.out.println("\tSum of All Odd and Even Numbers in Java");

       System.out.println();

      

       System.out.print("\tGive a Number : ");

       

       num=input.nextInt();


    for(a=1; a<=num; a++){  

        if(a%2==0) 

          even_numbers_sum=even_numbers_sum+a;

        else

         odd_numbers_sum=odd_numbers_sum+a;

        }

        

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

        System.out.println("\tSum of all odd numbers are: "+odd_numbers_sum);

        System.out.println("\tSum of all even numbers are: "+even_numbers_sum);

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

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

       System.out.println();

      

        

   }


   

   


}






/*  Odd_Even.java *  *  Prof. Jake Roderiguez Pomperada, MAED-IT, MIT *  www.jakerpomperada.com  and www.jakerpomperada.blogspot.com *  jakerpomperada@gmail.com *  Bacolod City, Negros Occidental Philippines *  * Machine Problem
Write a program using Java to ask the user to give a number and then the program will sum all the odd and even numbers ofthe given number, and display the results on the screen. */


import java.util.Scanner;
  
class Odd_Even
{          public static void main(String args[])
   {
        int a=0,num=0;          int odd_numbers_sum=0,even_numbers_sum=0;             Scanner input = new Scanner(System.in);
       System.out.println("\n");       System.out.println("\tSum of All Odd and Even Numbers in Java");       System.out.println();             System.out.print("\tGive a Number : ");              num=input.nextInt();
    for(a=1; a<=num; a++){          if(a%2==0)           even_numbers_sum=even_numbers_sum+a;        else         odd_numbers_sum=odd_numbers_sum+a;        }                System.out.println("\n");        System.out.println("\tSum of all odd numbers are: "+odd_numbers_sum);        System.out.println("\tSum of all even numbers are: "+even_numbers_sum);        System.out.println("\n");       System.out.println("\tEnd of Progam");       System.out.println();                 }
      
}

Friday, October 8, 2021

Largest of Three Numbers in Java

Largest of Three Numbers in Java

 Machine Problem

 Write a Java program that finds largest of three numbers and then prints it. If the entered numbers are unequal then "numbers are not distinct" is printed.

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


/*

 * Largest_of_Three_Numbers.java

 * 

  Prof. Jake Roderiguez Pomperada, MAED-IT, MIT

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

  jakerpomperada@gmail.com

  Bacolod City, Negros Occidental Philippines

 * 

 * Machine Problem

 * 

 * Write a Java program that finds largest of three numbers

and then prints it. If the entered numbers are unequal then "numbers are

not distinct" is printed.

 */


import java.util.Scanner;




class Largest_of_Three_Numbers


{


   public static void main(String args[])


   {


      int x=0, y=0, z=0;

      

       Scanner input = new Scanner(System.in);

       

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

       System.out.println("\tLargest of Three Numbers in Java");

       System.out.println();


      System.out.println("Enter three integers ");


     x = input.nextInt();


      y = input.nextInt();


      z = input.nextInt();


 


      if ( x > y && x > z )


         System.out.println("First number is largest.");


      else if ( y > x && y > z )


         System.out.println("Second number is largest.");


      else if ( z > x && z > y )


         System.out.println("Third number is largest.");


      else   


         System.out.println("Entered numbers are not distinct.");

         

      System.out.println();

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

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


   }


}


Plus 10, 100, and 1000 Methods in Java

Plus 10, 100, and 1000 Methods in Java

 Machine Problem


Create a Java program that would ask an integer from the user. This should be performed by the main method. Construct three (3) methods named showNumberPlus10(), showNumberPlus100(), and  showNumberPlus1000(). Each  methods should perform the task its name implies. Called the methods after the user input to display three (3) outputs in separate lines.

Sample  Program Output


Enter an Integer : 20

20 plus 10 is 30.

20 plus 100 is 120.

20 plus 1000 is 1020.


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



/*  plus10.java

 * 

 *  Prof. Jake Roderiguez Pomperada, MAED-IT, MIT

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

 *  jakerpomperada@gmail.com

 *  Bacolod City, Negros Occidental Philippines

 * 

 * 

Machine Problem


Create a Java program that would ask an integer from the user.

This should be performed by the main method. Construct

three (3) methods named showNumberPlus10(), showNumberPlus100(),

and  showNumberPlus1000(). Each  methods should perform the task

its name implies. Called the methods after the user input to display

three (3) outputs in separate lines.


Sample  Program Output


Enter an Integer : 20

20 plus 10 is 30.

20 plus 100 is 120.

20 plus 1000 is 1020.



 */




import java.util.Scanner;


  


class plus10


{

     public  static int showNumberPlus10(int a)

    {  

        

         System.out.println("\t" + a + " plus 10  is " + (a+10) + ".");

         return 0;

    }  

   

    public  static int showNumberPlus100(int a)

    {  

        

         System.out.println("\t" +  a + " plus 100  is " + (a+100) + ".");

         return 0;

    }  

    

    public  static int showNumberPlus1000(int a)

    {  

        

         System.out.println("\t" + a + " plus 1000  is " + (a+1000) + ".");

         return 0;

    } 

    

   public static void main(String args[])


   {


      int x=0;

      

       Scanner input = new Scanner(System.in);


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

       System.out.println("\tPlus 10, 100, and 1000 Methods in Java");

       System.out.println();

      

        System.out.println("\tEnter an integer: ");

    


      x = input.nextInt();

      

     showNumberPlus10(x);

     showNumberPlus100(x);

     showNumberPlus1000(x);

        

       System.out.println();

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

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


   }


   

   


}


Reverse a Number in Java