Thursday, May 27, 2021

Square and Cube Root in C++

 A simple program to display a square and cube root numerical values in C++ programming languages.

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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing


// square_cube_root.cpp

// Jake Rodriguez Pomperada,MAED-IT, MIT

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

// jakerpomperada@gmail.com


#include <iostream>

#include <iomanip>


using namespace std;


int main(int argc, char *argv[])

{

   int val[4][2] = {1,2,3,4,5,6,7,8};

    cout <<"\n\n";

    cout << "\tSquare and Cube Root in C++";

    cout <<"\n\n";

    cout << "NUMBER" <<

         setw(10) << "SQUARE"  <<

         setw(13) << "CUBE ROOT";

   for (int row=0; row < 4; row++) 

      for (int col=0; col < 2; col++)

   {

     cout <<"\n" << setw(2) << val[row][col] 

          << setw(12) << val[row][col]  *

          val[row][col] << setw(10) <<

           val[row][col]  *  val[row][col] *

        val[row][col]; 

           }

   cout << "\n\n";

   cout <<"\tEnd of Program";

   cout << "\n\n";

    system("PAUSE");

    

}


Wednesday, May 26, 2021

Year Level Checker in Python

Year Level Checker in Python

 I wrote this simple program to demonstrate how to declare and use if statement in Python programming language. What the program does it will ask the user to give a number 1 for Freshmen, 2 for Sophomore, 3 for Juniors, and 4 for Seniors. I hope you like this tutorial and thank you very much,

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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

# Jake Rodriguez Pomperada, MAED-IT, MIT
# Year_Level.py
# May 26, 2021 Wednesday
# Bacolod City, Negros Occidental

print();
print("\tYear Level Checker in Python");
print();
year_level = int(input("\tWhat is your year level? "));
print();
if (year_level == 1) :
print("\tThe given year level is ",year_level,'.');
print();
print("\tYou are belong to Freshmen.");

if (year_level == 2) :
print("\tThe given year level is ",year_level,'.');
print();
print("\tYou are belong to Sophomore.");

if (year_level == 3) :
print("\tThe given year level is " ,year_level,'.');
print();
print("\tYou are belong to Juniors.");

if (year_level == 4) :
print("\tThe given year level is " ,year_level,'.');
print();
print("\tYou are belong to Seniors.");
print();
print("\tEND OF PROGRAM");


Monday, May 24, 2021

Average Grade Solver in Python

Average Grade Solver in Python

 Machine Problem

Write a program that will ask the student to input the Prelim, Midterm, and Final grades and then, the program will compute the grade and display the result on the screen. The percentage on every grading period are the following: For Prelim, it will be 20%, Midterm will be 30%, and Finals will be 50%.

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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.








Program Listing

# Jake Rodriguez Pomperada, MAED-IT, MIT
# May 24, 2021 Monday
# www.jakerpomperada.com www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental

print()
print("\tAverage Grade Solver in Python");
print()
subject = input('\tWhat is the subject? ');
prelim = float(input('\tGive Prelim Grade : '));
midterm = float(input('\tGive Midterm Grade : '));
final = float(input('\tGive Final Grade : '));
solve_grade= (prelim * 0.20) + (midterm * 0.30) + (final * 0.50);
print();
print("\t===== DISPLAY RESULTS =====");
print();
print("\tThe subject is" ,subject,'.');
print();
print("\tThe subject grade is {:2.2f}".format(solve_grade));
print();
print("\tEND OF PROGRAM");


Fried Chicken Ordering System in PHP and MySQL

Fried Chicken Ordering System in PHP and MySQL

 A simple friend chicken ordering system that I wrote in PHP and MySQL. I hope you will find my work useful. Thank you very much.

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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






DOWNLOAD THE FREE AND COMPLETE SOURCE CODE HERE

Sunday, May 23, 2021

Do While Statement in Java

 In this tutorial I will show you how to declare and use do while statement 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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.





Program Listing

/* Do_While_Statement.java

 * Mr. Jake Rodriguez Pomperada,MAED-IT, MIT

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

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippiens

 */

public class Do_While_Statement {


/**

* @param args

*/

public static void main(String[] args) {

// TODO Auto-generated method stub

    System.out.println();

        System.out.print("\tDo While Statement in Java ");

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

        int a=1;  

        do{  

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

        a++;  

        }while(a<=20);  

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

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

        System.out.println();


}


}



How to Compile and Run Java Programs in Windows Command Line

Saturday, May 22, 2021

If Statement in Java

 In this article, I will discuss how to declare and use if statements in the 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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.





Program Listing

/* If_Statement.java

 * Mr. Jake Rodriguez Pomperada,MAED-IT, MIT

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

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippiens

 */


public class If_Statement {


/**

* @param args

*/

public static void main(String[] args) {

// TODO Auto-generated method stub

    System.out.println();

        System.out.print("\tIf Statement in Java ");

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

        int a=500;

        int b=200;

        if (a>b) { // if true, run the next command

        System.out.print ("\tA is greater than B in terms of numerical value.");

        }

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

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

        System.out.println();

}


}



Friday, May 21, 2021

Fahrenheit To Celsius in VB NET

Fahrenheit To Celsius in VB.NET

 


Problem


Write a program to ask the user to give temperature in Fahrenheit and then the program will convert the given temperature into Celsius equivalent. 

Formula to convert Fahrenheit to Celsius below

 °C = (°F  -  32)  x  5/9

Example 

50°F = 10°C ( (50°F - 32) multiplied by 5/9 = 10°C )

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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

' Fahrenheit To Celsius in VB.NET

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

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

' jakerpomperada@gmail.com

' Bacolod City, Negros Occidental Philippines

' May 17, 2021   Monday  3:56 PM


Public Class Form1


    Shared Function ConvertF2C(f As Double) As Double

        Return (f - 32) * 5 / 9

    End Function


    Private Sub btnConvert_Click(sender As Object, e As EventArgs) Handles btnConvert.Click


        Dim temperature As Double

        Dim result As Double


        temperature = Val(txtFahrenheit.Text)

        If txtFahrenheit.Text = "" Or IsNumeric(txtFahrenheit.Text) = False Then

            MessageBox.Show("Please enter temperature in Fahrenheit.", "Reminder", MessageBoxButtons.OK, MessageBoxIcon.Question)

            txtFahrenheit.Text = ""

            txtFahrenheit.Focus()

        Else

            result = ConvertF2C(temperature)

            txtCelsius.Text = result.ToString("#####.##") & "°C"

            txtCelsius.ReadOnly = True

        End If

    End Sub


    Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click

        txtFahrenheit.Text = ""

        txtCelsius.Text = ""

        txtFahrenheit.Focus()

    End Sub


    Private Sub btnQuit_Click(sender As Object, e As EventArgs) Handles btnQuit.Click

        Dim result = MessageBox.Show(" Are you sure you want to quit the program?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question)

        If result = DialogResult.Yes Then

            Me.Close()

        Else

            Me.Show()

            txtFahrenheit.Text = ""

            txtCelsius.Text = ""

            txtFahrenheit.Focus()

        End If

    End Sub

End Class



Wednesday, May 19, 2021

Finding the Largest Number in an Array in C

Finding the Largest Number in an Array in C

 Machine Problem 

Write a program for finding the largest number in an array.

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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.









Program Listing

/* largest.c

 Machine Problem
 
   Write a program for finding the largest number in an array.

Author : Jake Rodriguez Pomperada, MAED-IT, MIT
www.jakerpomperada.com  and www.jakerpomperada.blogspot.com
jakerpomperada@gmail.com
Bacolod City, Negros Occidental

*/

#include <stdio.h>

int main()
{
int *arr, i=0, j=0, num=0, LARGEST; 

printf("\n\n");
printf("\tFinding the Largest Number in an Array in C");
printf("\n\n");
printf("\tHow many elements in an array? : "); 
scanf("%d", &num);
printf("\n");
arr=(int*) malloc(sizeof(int)*num); 
for(i=0; i<num; i++)
{
printf("\tEnter a value number %d : ",i+1); 
scanf("%d", &arr[i]);
LARGEST=arr[0];
for(i=1; i<num;i++) 
{
if(arr[i]>LARGEST) LARGEST=arr[i];
}
printf("\n\n");
printf("\tThe largest number in the array is : %d", LARGEST); 
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
system("pause");
}
 

Tuesday, May 18, 2021

Persons Age Checker in Java

Person's Age Checker in Java

 In this tutorial, I will show you how to check the person's age if the person is still a minor or already an adult 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 at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.







Program Listing

/* Persons_Age_Checker.java

 * Mr. Jake Rodriguez Pomperada,MAED-IT, MIT

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

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippiens

 */



import java.util.*;


public class Persons_Age_Checker {


/**

* @param args

*/

public static void main(String[] args) {

// TODO Auto-generated method stub

        int age=0;

        

        Scanner input = new Scanner(System.in);

        

        System.out.println();

        System.out.print("\tPerson's Age Checker in Java ");

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

        System.out.print("Enter your age: ");

        

        age = input.nextInt();

        

        if(age <= 17)

        {

            System.out.println("\nYour age belongs to MINOR.");

        }

        else

        {

            System.out.println("\nYour age belongs to an ADULT.");

        }

        System.out.println();

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

        System.out.println();

    }

}




Monday, May 17, 2021

Area of Rectangle in VB NET

Area of the Rectangle in VB.NET

 Machine Problem

Write a program that will ask the user to give a radius of a circle and the program will compute

the area of the circle.

Use the following formula below.

area = (3.14 * radius * radius)

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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com







Program Listing

' Area of the Rectangle in VB.NET

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

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

' jakerpomperada@gmail.com

' Bacolod City, Negros Occidental Philippines

' May 16, 2021   Sunday  1:10 PM


Public Class Form1

    'Declaring constant value of PI of the circle

    Public Const PI = 3.14


    ' Compute Button

    Private Sub btnCompute_Click(sender As Object, e As EventArgs) Handles btnCompute.Click

        Dim radius As Single = 0.0F

        Dim area As Single = 0.0F

        Dim radius_value As String


        radius_value = txtRadius.Text


        If radius_value = "" Or IsNumeric(radius_value) = False Then

            MessageBox.Show("Please enter a radius value.")

            txtRadius.Focus()

        Else

            area = PI * Val(radius_value) * Val(radius_value)

            txtArea.Text = area.ToString("#####.##")

            txtArea.ReadOnly = True

        End If


    End Sub

    ' Clear Button

    Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click

        txtRadius.Text = ""

        txtArea.Text = ""

        txtRadius.Focus()

    End Sub


    Private Sub btnQuit_Click(sender As Object, e As EventArgs) Handles btnQuit.Click

        Dim result = MessageBox.Show(" Are you sure you want to quit the program?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question)

        If result = DialogResult.Yes Then

            Me.Close()

        Else

            Me.Show()

            txtRadius.Text = ""

            txtArea.Text = ""

            txtRadius.Focus()

        End If

    End Sub

End Class


Sunday, May 16, 2021

Print Half Pyramid in Java

Sending SMS Using Globe at Home Prepaid WiFi

Print Half Pyramid in Java

 In this tutorial, I will show you have to create a print pyramid using the 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com





Program Listing

/* Half_Pyramid.java
 * Mr. Jake Rodriguez Pomperada,MAED-IT, MIT
 * www.jakerpomperada.com www.jakerpomperada.blogspot.com
 * jakerpomperada@gmail.com
 * Bacolod City, Negros Occidental Philippines
 */

import java.util.Scanner;

public class Half_Pyramid {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int number = 0;
Scanner input = new Scanner(System.in);

    boolean valid;
    
do {
    System.out.println();
    System.out.print("\tPrint Half Pyramid in Java\n\n");
    System.out.print("Enter Number: ");
     // read the number
   number = input.nextInt();
   valid = (number >= 2   && number <= 10);
               
       if (!valid) {
       
        System.out.println("\nValues less than 2 or more then 10 are invalid input. Try Again. ");
         } 
       else {
       // outer loop for row
          for (int i=1; i <= number; i++) {
             // inner loop for column
             for(int j=1; j <= i; j++) {
                // print star
                System.out.print("* ");
             }
             // new line
             System.out.println();
          }
   }
   }while (!valid);
   System.out.println();
  System.out.println("End of Program");
//close the reader
  input.close();
}

}