Tuesday, September 21, 2021

Quotient and Modulus in C++

In this article I will show you how to use quotient and modulus operator in C++ programming. The program will ask the user to give two numbers and then the program will compute the quotient, and modulus of two given numbers.

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

// quotient_modulus.cpp

// Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

// www.jakerpomperada.blogspot.com

// www.jakerpomperada.com

// jakerpomperada@gmail.com



#include <iostream>


int a=0,b=0;

int quotient=0, modulus=0;


int main()

{

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

std::cout << "\tQuotient and Modulus in C++";

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

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

std::cin >> a >> b;

std::cout << "\n";

std::cout << "\tThe quotient between "

          << a << " and " << b  << " is "

          << a/b << ".\n\n";

std::cout << "\tThe modulus between "

          << a << " and " << b  << " is "

          << a%b << ".\n";

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

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

std::cout << "\n";

}


Constructor in Java

Constructor in Java

 In this article I will discuss the tutorial how to create a constructor 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.

Your support on my channel is highly appreciated.





Program Listing


// A simple Java program to create and call a default constructor  

class Car{  
//creating a default constructor  
  Car()
  {
  System.out.println("Car has been created.");
}  
//main method  
public static void main(String args[]){  
//calling a default constructor  
Car Suzuki=new Car();  
}  
}  


Comments in PHP

Comments in PHP

 In this article I will share a tutorial on comments PHP I hope you will find it useful.

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.







index.php

<!DOCTYPE html>

<html>

<body>


<?php

/*

* Reference

https://www.w3schools.com/php/php_comments.asp

*

*/


// This is a single-line comment


echo "<h1>Comments in PHP</h1>";


# This is also a single-line comment


/*

This is a multiple-lines comment block

that spans over multiple

lines

*/


?>


</body>

</html>


Monday, September 20, 2021

this us a video of why 2 people dislike of one of my videos

Square Root in Python

Square Root in Python

 Machine Problem

Write a program that will ask the user to give a number and then the program will convert the given number into square root equivalent.

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


# square_root.py
# Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
#
# Write a program that will ask the user to give a number
# and then the program will convert the given number into
# square root equivalent.

import math # This will import math module

print()
print("\tSquare Root in Python")
print()
num_val = float(input('Give a Number : '))

# convert into square root equivalent
square_root =math.sqrt(num_val)

print()
print('%0.2f the square root value is %0.2f ' %(num_val,square_root))
print()
print("\tEnd of Program")
print()

Kilometers To Miles in Python

Kilometers To Miles in Python

Machine Problem 

Write a program that will ask the user to give distance # in kilometers and then it will convert it into miles distance equivalent.

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


# kilometers_miles.py
# Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
#
# Write a program that will ask the user to give distance
# in kilometers and then it will convert it into miles
# distance equivalent

print()
print("\tKilometers To Miles in Python")
print()
kilometers = float(input('How many kilometers?: '))
# conversion factor
conversion_factor = 0.621371
# calculate miles
miles = kilometers * conversion_factor
print()
print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))
print()
print("\tEnd of Program")
print()

Sunday, September 19, 2021

Multiply Two Numbers Using Swing in Java

MULTIPLY TWO NUMBERS USING SWING IN JAVA

 Machine Problem

Write program that asks the user to give two integer numbers and displays the product 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.

Your support on my channel is highly appreciated.

 



Program Listing

// multiply_two_numbers.java

// Jake Rodriguez Pomperada, MAED-IT, MIT

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

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


/*  Machine Problem

 * 

 * Write program that asks the user to give two integer numbers and displays the product. 

 */


import javax.swing.JOptionPane; 


public class multiply_two_numbers

{

   public static void main( String args[] )

   {

       

       JOptionPane.showMessageDialog( null, "MULTIPLY TWO NUMBERS USING SWING IN JAVA" + "\n\n" +

       "     Click The Ok Button To Continue    ", 

         "About This Program", JOptionPane.INFORMATION_MESSAGE );

         

      // obtain user input from JOptionPane input dialogs

      String x = 

         JOptionPane.showInputDialog( "Enter first integer" );

      String y =

          JOptionPane.showInputDialog( "Enter second integer" );


      // convert String inputs to int values for use in a calculation

      int a = Integer.parseInt(x); 

      int b = Integer.parseInt(y);


      // Perform multiplication of variables a and variable b

      int product = (a*b);

      

      // display result in a JOptionPane message dialog

      JOptionPane.showMessageDialog( null, "       The product of " + a + " and " + b + " is " + product + "."

       + "\n\n" + "    Written By Prof. Jake R. Pomperada,MAED-IT, MIT  " + "\n\n" ,

         "The Result", JOptionPane.INFORMATION_MESSAGE );

         

         

   } // end method main

} // end class multiply_two_numbers


Friday, September 17, 2021

ODD AND EVEN NUMBERS 100 To 800 IN JAVA

 Machine Problem

Write a  program using while loop statement that will display odd and even number from 100 to 800 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.

Your support on my channel is highly appreciated.






Program Listing

/* Odd_Even_Numbers,java

 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

 * September 17, 2021   Friday  11:47 PM

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

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippines.

 * 

 * Machine Problem

 * 

 * 

* Write a  program using while loop statement that will display odd and even

* number from 100 to 800.

 */


public class Odd_Even_Numbers {

    

         

 public static void main(String[] args) {

     int counter1=0, counter2=0;


  System.out.print("\t\t\t\tODD AND EVEN NUMBERS 100 To 800 IN JAVA");

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

  

  

  int number=0, i=0; 

    

i=101;   

number = 800;

System.out.print("\t\t\t\t\tList of Odd numbers 100 To 800 ");  

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

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

while(i<=number)  

{  

     counter1++;

  

System.out.print(i +",");   


i=i+2;  

if(counter1 == 28){

           

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

        counter1 = 0;

    }

}     

    

 

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

  System.out.println("\t\t\t\t\tList of Even Numbers 100 To 800");

  System.out.println();

 

 int  a=100,num=800;

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

 while(a<=num)  

{  

     counter2++;


System.out.print(a +",");   

  

a=a+2;  

if(counter2 == 28){

           

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

        counter2 = 0;

    }

}     

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

  System.out.print("\t\t\t\t\t\tEND OF PROGRAM");

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

  

 }

}





Print 1 To 100 in Ascending and Descending Order in Java

Print 1 to 100 in Ascending and Descending Order in Java

 Machine Problem

Write a program using for loop that will display a series of a number from 

1 to 100 in ascending order and 100 to 1 in descending order 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.

Your support on my channel is highly appreciated.




Program Listing

/* Print_1_100,java

 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

 * September 17, 2021   Friday  10:56 PM

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

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippines.

 * 

 * Machine Problem

 * 

 * Write a program using for loop that will display a series of a number from 

 * 1 to 100 in ascending order and 100 to 1 in descending order.

 */


public class Print_1_100 {

    

         

 public static void main(String[] args) {

     int counter=0;

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

  System.out.print("\tPrint 1 to 100 in Ascending and Descending Order in Java");

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

  System.out.println("\t\tPrint 1 to 100 in Ascending Order");

  System.out.println();

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

   for (int a=1; a<=100; a+=1) {

        counter++;

       System.out.print( a +",");

      

       if(counter == 25){

           

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

        counter = 0;

    }

   }

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

  System.out.println("\t\tPrint 100 to 1 in Descending Order");

  System.out.println();

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

  for (int a=100; a>=1; a-=1) {

       counter++;

       System.out.print( a +",");

       if(counter == 25){

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

        counter = 0;

    }

   }

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

  System.out.print("\t\t\t\tEND OF PROGRAM");

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

  

 }

}




Bakit Maraming Kumukuha ng IT Couses

Simple Payroll Program in AngularJS

Simple Payroll Program in AngularJS

Machine  Problem

Write a program that will ask the employee's name, number of day's worked, and  rate per day and then the program will display the employee's name, number of day's work, rate per day, and then compute the gross salary of the employee.

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


<!-- index.htm

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

  Date     : July 24, 2021  Saturday 9:28 PM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

  <head>

    <title>Simple Payroll Program in AngularJS</title>

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

     

 </head>

 <style>

body {

font-family: arial;

font-size: 25px;

font-weight: bold;

}

</style>

 <body ng-app="">

  <h3>Simple Payroll Program in AngularJS</h3>

 <div>

  <table border="0">

  <tr>

  <td>

  Enter Employee's Name </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="text"  size="40" ng-model="emp_name" required/>

       </td>

     </tr>

       <tr>

        <td>

      Enter Number of Day's Worked  </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number"  size="10" ng-model="days_worked" required/>

       </td>

     </tr>

      <tr>

        <td>

      Enter Daily Rate  </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number"  size="10" ng-model="daily_rate" required/>

       </td>

     </tr>

       <tr>

        <td>&nbsp;&nbsp;&nbsp;</td>

      </tr>

       </table>

      <br>

       Employee's Name         : {{emp_name | uppercase}} <br>

       Number of Day's Worked  : {{days_worked}}<br>

       Rate Per Day            : PHP {{daily_rate | number:2}}

       <br><br>

       Gross Salary            : PHP  {{ (days_worked * daily_rate) | number:2}}

       <br>

    </div><br>

       </div>

    </body>

</html>

Wednesday, September 15, 2021

Prime Number Checker in Java Using BlueJ

Prime Number Checker in Java Using BlueJ

 What are Prime Numbers? 

In math, prime numbers are whole numbers greater than 1, that have only two factors – 1 and the number itself.

Prime numbers are divisible only by the number 1 or itself.  

 For example, 2, 3, 5, 7 and 11 are the first few prime numbers.

Reference

https://www.splashlearn.com/math-vocabulary/algebra/prime-number


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

// Prime_Number.java

// Jake Rodriguez Pomperada,MAED-IT, MIT

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

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


import java.util.Scanner;


public class Prime_Number {


    public static void main(String[] args) {


        

        Scanner scan = new Scanner(System.in);

        

              

        System.out.println();

        System.out.print("\tPrime Number Checker in Java Using BlueJ ");

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

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

        int num = scan.nextInt();

        

        

        boolean flag = false;

        for(int i = 2; i <= num/2; ++i)

        {

            if(num % i == 0)

            {

                flag = true;

                break;

            }

        }


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

         

        if (!flag)

            System.out.println("\t" + num + " is a prime number.");

        else

            System.out.println("\t" + num + " is not a prime number.");

    }

}