Thursday, March 11, 2021

Create a table Using SQL

 Write an SQL statement  to create a simple table student including columns student_id and student_name.

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.




Wednesday, March 10, 2021

Convert Days to Years, Weeks and Days in C

Convert Days to Years, Weeks and Days

 

Machine Problem 

Write a program to ask the user to give input number of days and convert it to years, weeks, and days

and display the result 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.



Program Listing

/* days.c
Convert days to years weeks and days
Author   : Jake R. Pomperada, MAED-IT, MIT
www.jakerpomperada.blogspot.com
www.jakerpomperada.com
jakerpomperada@gmail.com
Bacolod City, Negros Occidental Philippines
*/

#include <stdio.h>

int main()
{
   int days=0, years=0, weeks=0;

   system("COLOR F0");
   printf("\n\n");
   printf("\tConvert Days to Years, Weeks and Days");
   printf("\n\n");
   printf("\tHow Many Days : ");
   scanf("%d", &days);

    /* Conversion in this portion */
    years = (days / 365);   /* Ignoring leap year */
    weeks = (days % 365) / 7;
    days  = days - ((years * 365) + (weeks * 7));

    printf("\n\n");
    printf("\tDisplay Results");
    printf("\n\n");
    printf("\tNumber of Years : %d\n", years);
    printf("\tNumber of Weeks : %d\n", weeks);
    printf("\tNumber of Days  : %d", days);
  printf("\n\n\n");
    printf("\tEND OF PROGRAM");
    printf("\n\n");
    }



Tuesday, March 9, 2021

Login and Registration With Pictures in PHP and MySQL

Login and Registration with Pictures Using PHP and MySQL

 A program that I wrote to allow the user registration and login with Pictures using PHP and MySQL

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.







DOWNLOAD THE COMPLETE AND FREE SOURCE CODE HERE

Alert Method in JavaScript

Alert Method in JavaScript

 In this article, I will share with you how to declare and use the alert method using the JavaScript 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


<html>

 <head>

  <title> Alert Method in JavaScript </title>

</head>

   <body>

    <script>

    alert("This is an Alert Method in Javascript");

    </script>

 </body>

 </html>   

Monday, March 8, 2021

First and Last Character in Java

Product of Two Numbers Using Batch File in DOS

PRODUCT OF TWO NUMBERS USING BATCH FILE IN DOS

 A program to ask the user to give two numbers and then the program will compute the product of two given numbers using Batch file programming in DOS.

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

@ECHO OFF
echo.
echo PRODUCT OF TWO NUMBERS USING BATCH FILE IN DOS
ECHO.
echo. CREATED BY MR. JAKE R. POMPERADA,MAED-IT,MIT
echo.
ECHO Enter First Value:
SET /P a=
ECHO Enter Second Value:
SET /P b=

ECHO.
SET /A Product=%a%*%b%
ECHO The product of %a% and %b% is %Product%.
ECHO.
ECHO Press any key to exit.
PAUSE>NUL


First and Last Character in Java

 A simple program to ask the user to give a string and then the program will identify the first and last character in the given string by the user 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.




Program Listing


/**

 * @author Jake Rodriguez Pomperada, MAED-IT, MIT

 * jakerpomperada@gmail.com

 * www.jakerpomperada.com

 * Bacolod City, Negros Occidental

 * March 8, 2021 Monday

 */


import java.util.*;


class First_Last_Character {  

    public static void main(String[] args) {  

    

    Scanner sc = new Scanner(System.in);

        

      char ch1,ch2;

      String str;

      String reply = "";

        

        do {

       

             

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

      System.out.print("\t\tFirst and Last Character in Java");

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

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

        str = sc.nextLine();

        

   

        ch1 = str.charAt(0);

        ch2 = str.charAt(str.length() - 1);

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

        System.out.println("\tThe first character of the string is: " + ch1);             

        System.out.println("\tThe last character of the string is: " + ch2);

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

        System.out.print("\tDo you want to continue (Type Y - Yes or N - No) : ");

        reply = sc.nextLine();


        }while(reply.equalsIgnoreCase("Y"));

          System.out.println();

          System.out.print("\t THANK YOU FOR USING THIS PROGRAM");

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

          sc.close();

    }  

}  

ADDITION OF THREE NUMBERS USING BATCH FILE IN DOS

Addition of Three Numbers Using Batch File in DOS

 A simple program that I wrote that will ask the user to give three numbers and then it will compute the sum of the three numbers using batch file programming in DOS (Disk Operating System)

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

sum.bat

@ECHO OFF
echo.
echo ADDITION OF THREE NUMBERS USING BATCH FILE IN DOS
ECHO.
echo. CREATED BY MR. JAKE R. POMPERADA,MAED-IT,MIT
echo.
ECHO Enter First Value:
SET /P a=
ECHO Enter Second Value:
SET /P b=
ECHO Enter Third Value:
SET /P c=

ECHO.
SET /A Ans=%a%+%b%+%c%
ECHO The total sum is %Ans%.
ECHO.
ECHO Press any key to exit.
PAUSE>NUL

Saturday, March 6, 2021

Even Number Generators in Java

 A simple program to ask the user to give a number and the program will generate even numbers 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.







Program Listing

EvenNumbers.java


/* EvenNumbers.java
 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT
 * March 6, 2021  9:20 PM Saturday
 * www.jakerpomperada.blogspot.com
 * www.jakerpomperada.com
 * jakerpomperada@gmail.com
 * Bacolod City, Negros Occidental
 * 
 * Machine Problem in Java
 * 
 * Write a program to ask the user to give a number and then
 * it will generate the even numbers based on the given number by
 * the user.
 * 
 */
import java.util.Scanner;

class EvenNumbers {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
System.out.print("\n\n");
System.out.print("\tEven Number Generators in Java");
System.out.print("\n\n");
        System.out.print("\tEnter a number: ");
        int number = scan.nextInt();
        int res;
        System.out.print("\n");
        for (int i=1; i<number; i++) {
          System.out.print("\t");
            res = number - i;
            if (i%2==0) {
                System.out.println(res);  
            }  
        }
 
System.out.print("\n\n");
System.out.print("\tEnd of Program");
System.out.print("\n\n");
    scan.close();
    }
}

Triangle Image Generator in PHP

Triangle Image Generator in PHP

 A simple program that I wrote that will ask the user to give a number and then the program will generate an inverted triangle using the symbol of asterisk in php 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


index.php


<?php
    $res = "";
    if (isset($_POST["txtNum"])) {
        $num = $_POST["txtNum"];

        while ($num >= 0) {
            $num--;
            for ($i = 0; $i<=$num; $i++) {
                $res .= '*';
            }
            $res .= "<br>";
        }

        $res = "<p>".$res."</p>";
    }
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>The Asterisk Problem</title>
    <style>
        form {
            width250px;
            margin200px auto 0;
        }
        fieldset {
            padding20px 25px 20px 20px;
        }
        input {
            width100%;
        }
    </style>
</head>
<body>
    <form action="" method="post">
        <fieldset>
            <legend>The Asterisk Problem</legend>
            <label for="fname">Enter a number:</label>
            <input type="number" id="txtNum" name="txtNum"><br><br>
            <button type="submit">Submit</button>
        </fieldset>
        <?php echo $res; ?>
    </form>
</body>
</html>

Even Number Generators in PHP

Even Number Generators in PHP

 A simple program that I wrote that will ask the user to give a number and then it will generate the even numbers using PHP 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

index.php


<?php
    $res = "";
    if (isset($_POST["txtNum"])) {
        $num = $_POST["txtNum"];

        while ($num >= 0) {
            $num--;
            if ($num % 2 == 0 && $num != 0) {
                $res .= $num.' ';
            }
        }

        $res = "<p>".$res."</p>";
    }
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>The Even Numbers Problem</title>
    <style>
        form {
            width250px;
            margin200px auto 0;
        }
        fieldset {
            padding20px 25px 20px 20px;
        }
        input {
            width100%;
        }
    </style>
</head>
<body>
    <form action="" method="post">
        <fieldset>
            <legend>The Even Numbers Problem</legend>
            <label for="fname">Enter a number:</label>
            <input type="number" id="txtNum" name="txtNum"><br><br>
            <button type="submit">Submit</button>
        </fieldset>
        <?php echo $res; ?>
    </form>
</body>
</html>

Sum of Even Numbers in Visual Basic NET

Sum of Even Numbers in Visual Basic NET

 Write a program in visual basic net  to display the sum of even numbers from 20 to 40.

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

' Author : Jake R. Pomperada, MAED-IT, MIT

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

' jakerpomperada@gmail.com

'

' Write a program in visual basic to display the sum of even numbers from 20 to 40.


Public Class Form1

    Public Function GetEvenNumberSum(min As Integer, max As Integer) As Integer

        Dim sum As Integer = 0

        For i As Integer = min To max

            If i Mod 2 = 0 Then

                sum += i

            End If

        Next

        Return sum

    End Function


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        TextBox3.Text = Str(GetEvenNumberSum(Val(TextBox1.Text), Val(TextBox2.Text)))

    End Sub


    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

        TextBox1.Text = ""

        TextBox2.Text = ""

        TextBox3.Text = ""

        TextBox1.Focus()

    End Sub


    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

        End

    End Sub

End Class


Friday, March 5, 2021

Swap Two Numbers Using Functions in C++

 A simple program to ask the user to give two numbers and then the program will display the original arrangement and swap arrangement of the two numbers using functions in the 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.




Program Listing

// swap.cpp

// Mr. Jake R. Pomperada, MAED-IT, MIT

// www.jakerpomperada.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <iostream>

#include <stdlib.h>


using namespace std;


void GetVal(int& Get1,int& Get2);

void SwapVal(int& Swap1,int& Swap2);

void ShowVal(int& Show1,int& Show2);


int main()

{

    int FirstNum,SecondNum;

    GetVal(FirstNum,SecondNum);

    SwapVal(FirstNum,SecondNum);

    ShowVal(FirstNum,SecondNum);

    system("PAUSE");

    return 0;

}


void GetVal(int& Get1,int& Get2)

{

     cout << "\n\n";

cout << "\tSwap Two Numbers Using Functions in C++";

     cout << "\n\n";

cout << "\tGive Two Values: ";

     cin >> Get1 >> Get2;

     cout << "\n\n";

     cout << "\tOriginal Arrangement\n\n";

     cout <<"\t" << Get1 << "  " << Get2 << "\n";

     cout << "\n\n";

     cout << "\tSwap Arrangement\n\n";

     cout << "\n\n";

}


void SwapVal(int& Swap1,int& Swap2)

{

     int temp;

     temp = Swap1;

     Swap1 = Swap2;

     Swap2 = temp;

}


void ShowVal(int& Show1,int& Show2)

{

     cout <<"\t" << Show1 << "  " << Show2 << "\n";

     cout << "\n\n";

     cout << "\tEnd of Program";

     cout << "\n\n";

}


Grade Solver in Python

Thursday, March 4, 2021

Grade Solver in Python

 A simple grade solver that I wrote 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


name = str(input("Enter Name: "))
math = int(input("Enter Math: "))
science = int(input("Enter Science: "))
english = int(input("Enter English: "))

calc = (math + science + english) / 3
print("Average Grade: %.2f" %(calc))

if calc >= 75:
print(f"Congratulations! You passed the semester.")
if math < 75 or science < 75 or english < 75:
print(f"but you need to retake the following subject(s):")
if math < 75:
print(f"Math")
if science < 75:
print(f"Science")
if english < 75:
print(f"English")
else:
print(f"You failed the semester.")

Years of Service in Python

Years of Service in Python

 I wrote this simple program that I called years of service in python to show how to use if else if statement. I hope you will find my work 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.




Program Listing


# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# February 23, 2021
# Bacolod City, Negros Occidental

print()
print("\tYEARS OF SERVICE IN PYTHON");
print()
years = int(input("Enter years of service: "))
office = str(input("Enter office: "))

if years >= 10:
if office.upper() == "IT":
print(f"Amount Given: 10000")
elif office.upper() == "ACCT":
print(f"Amount Given: 12000")
elif office.upper() == "HR":
print(f"Amount Given: 15000")
elif years < 10:
if office.upper() == "IT":
print(f"Amount Given: 5000")
elif office.upper() == "ACCT":
print(f"Amount Given: 6000")
elif office.upper() == "HR":
print(f"Amount Given: 7500")
print()
print("\tEND OF PROGRAM");
print()

Monday, March 1, 2021

Smallest and Biggest Element in an Array in C++

 I wrote this program to ask the user to give a series of elements in an array and then it will check what element has the smallest and biggest numerical values using 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 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


// arrays.cpp

// Jake R. Pomperada, MAED-IT,MIT

// www.jakerpomperada.com

// www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental



#include<iostream>


int main ()

{

    int arr[20];

int n=0, i=0, max=0, min=0;

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

    std::cout <<"\tSmallest and Biggest Element in an Array in C++";

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

    std::cout << "\tGive the size of the array : ";

    std::cin >> n;

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

     for (i = 0; i < n; i++) {

   std::cout << "\tGive value in element no. " << i+1 << " : ";

       std::cin >> arr[i];

       }

    max = arr[0];

    for (i = 0; i < n; i++)

    {

        if (max < arr[i])

            max = arr[i];

    }

    min = arr[0];

    for (i = 0; i < n; i++)

    {

        if (min > arr[i])

            min = arr[i];

    }

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

    std::cout << "\tThe Biggest  Element : " << max;

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

    std::cout << "\tThe Smallest Element : " << min;

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

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

  }

Factorial in Python Using While Statement

 A simple program to ask the user to give a number and then the program will compute the factorial number of the given number using while statement in 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


num = int(input("Enter an integer: "))
i = 1
sum = 1
while num >= i:
sum = sum * i
i = i + 1

print(f"Factorial is {sum}")