Thursday, March 18, 2021

Arithmetic Operators in Go

 A simple program to demonstrate how to use arithmetic operating using Go 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

package main

import "fmt"

func main() {

    var x int = 31
    var y int = 20
    var z int

    z = x + y

    fmt.Printf("\n")
    fmt.Printf("\tArithmetic Operators in Go\n\n")
    fmt.Printf("\tLine 1 - Value of z is %d\n", z)

    z = x - y
    fmt.Printf("\tLine 2 - Value of z is %d\n", z)

    z = x * y
    fmt.Printf("\tLine 3 - Value of z is %d\n", z)

    z = x / y
    fmt.Printf("\tLine 4 - Value of z is %d\n", z)

    z = x % y
    fmt.Printf("\tLine 5 - Value of z is %d\n", z)

    x++
    fmt.Printf("\tLine 6 - Value of x is %d\n", x)

    x--
    fmt.Printf("\tLine 7 - Value of x is %d\n", x)
    fmt.Printf("\n")
    fmt.Printf("\tEnd of Program")
    fmt.Printf("\n")
}



Wednesday, March 17, 2021

Learning Math in C

Learning Math in C

 

A menu driven program that I wrote using C language to solve the factorial, prime numbers, and odd and even 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.






Program Listing


#include<stdio.h>

#include <stdlib.h>


int main()


{

    printf("\n\n\t\tLearning Math in C\n");

    printf("\nCreated By Mr. Jake R. Pomperada,MAeD-IT,MIT\n\n\n");

    int choice, num, i;

    unsigned long int fact;


    while(1)

    {

        printf("1. Factorial \n");

        printf("2. Prime\n");

        printf("3. Odd\\Even\n");

        printf("4. Exit\n\n\n");

        printf("Enter your choice :  ");

        scanf("%d",&choice);

        

        switch(choice)

        {

            case 1:

                printf("Enter number:\n");

                scanf("%d", &num);

                fact = 1;

                for(i = 1; i <= num; i++)

                {

                    fact = fact*i;

                }

                printf("\n\nFactorial value of %d is = %lu\n\n\n",num,fact);

                break;

        

            case 2:

                printf("Enter number:\n");

                scanf("%d", &num);

                if(num == 1)

                printf("\n1 is neither prime nor composite\n\n");

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

                {

                    if(num%i == 0)

                    {

                        printf("\n%d is not a prime number\n\n", num);

                        break;

                    }

                

                }

                /*

                    Not divisible by any number other 

                    than 1 and itself

                */

                if(i == num) 

                {

                    printf("\n\n%d is a Prime number\n\n", num);

                    break;

                }

        

            case 3:

                printf("Enter number:\n");

                scanf("%d", &num);

        

                if(num%2 == 0) // 0 is considered to be an even number

                    printf("\n\n%d is an Even number\n\n",num);

                else

                    printf("\n\n%d is an Odd number\n\n",num);

                break;

        

            case 4:

                exit (0);

                

            case 5: 

break; 

        

      default:

        printf("\n\nINPUT CORRECT OPTION\n\n\n");

        break; 

        }

    }

    return 0;

}


Tuesday, March 16, 2021

Constant in Go

 I wrote this simple program to show how to declare and use constants in Go 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

const.go

package main

import "fmt"

func main() {
    const Title string = "Computer Programming is Fun and Profit"

    fmt.Println(Title)
}

Monday, March 15, 2021

Hello World in Go

Hello World in Go

 A simple program to demonstrate hello world using Go 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


package main

import "fmt"

func main() {
    fmt.Println("\tHello World in Go")
}

Sunday, March 14, 2021

Burger Ordering System in PHP and MySQL

Burger Ordering System in PHP and MySQL

 A burger ordering system written in PHP and MySQL I hope you like this code thank you.

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 FREE AND COMPLETE SOURCE CODE HERE


Friday, March 12, 2021

Hours To Minutes Conversion in Go

Hours To Minutes Solver in Go

 A simple program that I wrote using Go programming language to ask the user to give hour values and then the program will convert the given hour into minute 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.




Program Listing

minutes_hours.go

/* hours_minutes.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : September 22, 2020  8:54 PM Tuesday
   Websites : www.jakerpomperada.com  / www.jakerpomperada.blogspot.com  
   Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
   Location : Bacolod City, Negros Occidental Philippines. 
*/

package main
 
import "fmt"
      
func main(){
    var hours int  
    var minutes int
      
    fmt.Print("\n\n")
    fmt.Print("\tHours To Minutes Solver")
    fmt.Print("\n\n")
    fmt.Print("\tEnter Number of Hours : ")
    fmt.Scan(&hours)
      minutes = hours * 60
    fmt.Print("\n\n")
    fmt.Println("\tThe result is ",minutes, " Minutes.") 
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")
}

Thursday, March 11, 2021

Find the First and Last Character in a String in C++

First and Last Character in a String in C++

 A program that I wrote using C++ to ask the user to give a string and then the program will identify which is the first and last character.

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

// string.cpp
// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

#include <iostream>
#include <string>

int main()
{
  std::string input;
  std::cout << "\n\n";
  std::cout << "\tFirst and Last Character in a String in C++";
  std::cout << "\n\n";
  std::cout << "\tEnter a string : ";
  std:: getline (std::cin, input);
  std::cout << "\n\n";
  if(!input.empty())
  std::cout << "\tThe first character is: " << input.front()
   << " the last character is: "
<< input.back() << "\n";
  else
    std::cout << "\tYou didn't enter anything.";
  std::cout << "\n\n";
  std::cout << "\tEnd of Program";
  std::cout << "\n\n";
}

Create a Table Using SQL

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