Wednesday, September 22, 2021

Area of a Circle in C#

Area of a Circle in C#

 A simple program to ask the user to give a radius and then the program will convert the given radius into the area of the circle equivalent 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

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace Area_of_a_Circle

{

    class Program

    {

        static void Main(string[] args)

        {

            double radius, AREA;

            const double PI = 3.14;

            Console.WriteLine("============================================");

            Console.WriteLine("\tArea of a Circle in C#");

            Console.WriteLine("=============================================");

            Console.WriteLine();

            Console.Write("\tEnter the radius of circle : ");

            radius = Convert.ToDouble(Console.ReadLine());

            AREA = PI * radius * radius;

            Console.WriteLine();

            Console.WriteLine("\tThe area of circle is {0} when radius is {1}.", AREA, radius);

            Console.WriteLine("\n");

            Console.WriteLine("\tEnd of Program");

            Console.ReadKey();

        }

    }

}


Tuesday, September 21, 2021

Quotient and Modulus in C++

Quotient and Modulus in C++

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