Thursday, September 26, 2019

Odd and Even Number Checker in PHP

In this article, I would like to share with you guys a program that I wrote that will ask the user to give a number and then the program will check if the given number is odd or even number using PHP as our 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Sample Program Output


Program Listing

index.php

<html>
<style>
 body {
font-size: 20;
font-family:sans-serif;
font-weight: bold;
 }
input {
font-size: 20px;
font-weight: bold;
}
 /* http://cssdemos.tupence.co.uk/button-styling.htm */ 
 input#shiny {
padding: 4px 20px;
/*give the background a gradient*/
background:#ffae00; /*fallback for browsers that don't support gradients*/
background: -webkit-linear-gradient(top, blue,blue);
background: -moz-linear-gradient(top, blue, blue);
background: -o-linear-gradient(top, blue, blue);
background: linear-gradient(top, blue, blue);
border:2px outset #dad9d8;
/*style the text*/
font-family:Andika, Arial, sans-serif; /*Andkia is available at http://www.google.com/webfonts/specimen/Andika*/
font-size:1.1em;
letter-spacing:0.05em;
text-transform:uppercase;
color:#fff;
text-shadow: 0px 1px 10px #000;
/*add to small curve to the corners of the button*/
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
/*give the button a drop shadow*/
-webkit-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
-moz-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
}
/****NOW STYLE THE BUTTON'S HOVER STATE***/
input#shiny:hover, input#shiny:focus {
border:2px solid #dad9d8;
}
 </style>
<body>
 <?php
 error_reporting(0);
 $values = $_POST['inputText'];
 if(isset($_POST['ClearButton'])){
 $values = "";
 }
?>
 <br>
 <h4> Odd and Even Number Checker in PHP</h4>
 <h5> Created By Jake Rodriguez Pomperada</h5>
 <form action="" method="post">
 Give a Number
 <input type="text" name="inputText" size="5" maxlength="5"
 value="<?php echo $values; ?>" style="width:100px; height:30px;" required autofocus=""/>
 <br><br>
 <input id="shiny" type="submit" value="Ok" name="SubmitButton"/>
    
 <input id="shiny" type="submit" value="Clear" name="ClearButton"/>
</form>
<?php

function check_num($number){ 
    if($number % 2 == 0){ 
        echo "The given number $number is an EVEN number.";  
    } 
    else{ 
        echo "The given number $number is an ODD number.";  
    } 


$values = $_POST['inputText'];
if(isset($_POST['SubmitButton'])){
$num_val = (int)$values;
echo "<br>";
check_num($num_val);
}
?>
</body>
</html>



Odd and Even Number in C++ Checker

In this article I would like to share with you guys a simple program that will ask the user to give a number and then the program will check if the given number is an odd or even number 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Program Listing


#include <iostream>

using namespace std;


int main() {
int num_val=0;
cout << "\n\n";
cout << "\tOdd and Even Number Checker in C++";
cout << "\n\n";
cout << "\tGive a Number : ";
cin >> num_val;
if (num_val % 2 == 0) {
cout << "\n";
cout << "\tThe given number " << num_val 
<< " is an EVEN number.";
} else
  {
    cout << "\n";
  cout << "\tThe given number " << num_val 
<< " is an ODD number.";
  }
  cout << "\n\n";
  cout << "\tEnd of the Program";
}

Fahrenheit To Celsius Converter in C++

A simple program that I wrote that will ask the user to give temperature in Fahrenheit and then it will convert into Celsius equivalent using C++ as our 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Program Listing

#include <iostream>
#include <iomanip>

using namespace std;

int main() {
float celsius=0.00, fahrenheit=0.00;
cout <<"\n\n";
cout <<"\tFahrenheit To Celsius Converter";
cout <<"\n\n";
cout <<"\tEnter Temperature in Fahrenheit : ";
cin >> fahrenheit;
celsius = (fahrenheit - 32) * 5 /9;
cout <<"\n\n";
cout <<"\tThe temperature in Celsius is "
     << fixed << setprecision(2) << celsius <<".";
cout <<"\n\n";
cout << "\tEnd of the Program";
}




Odd and Even Number Checker in C++

Fahrenheit To Celsius Converter in C++

Wednesday, September 25, 2019

ADDITION OF THREE NUMBERS USING BATCH IN DOS

Here is a simple program that I wrote using DOS Batch file programming that will ask the user to give three numbers and then the program will add the sum of the three numbers and display the results 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.




Sample Program Output


Program Listing

sum.bat

@ECHO OFF
echo.
echo ADDITION OF THREE NUMBERS USING BATCH IN DOS
ECHO.
echo. CREATED BY MR. JAKE R. POMPERADA
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




Web Forms in Golang

A simple web forms in Go programming language it will ask the name and address of the user and send to the other web page.

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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.


Program Listing

forms.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
</head>
<body>
<div>
  <form method="POST" action="/">     
      <label>Name</label><input name="name" type="text" value="" />
      <label>Address</label><input name="address" type="text" value="" />
      <input type="submit" value="submit" />
  </form>
</div>
</body>
</html>


main.go

package main
 
import (
    "fmt"
    "log"
    "net/http"
)
func hello(w http.ResponseWriter, r *http.Request) {
    if r.URL.Path != "/" {
        http.Error(w, "404 not found.", http.StatusNotFound)
        return
    }
 
    switch r.Method {
    case "GET":     
         http.ServeFile(w, r, "forms.html")
    case "POST":
        // Call ParseForm() to parse the raw query and update r.PostForm and r.Form.
        if err := r.ParseForm(); err != nil {
            fmt.Fprintf(w, "ParseForm() err: %v", err)
            return
        }
       // fmt.Fprintf(w, "Post from website! r.PostFrom = %v\n", r.PostForm)
        name := r.FormValue("name")
        address := r.FormValue("address")
        fmt.Fprintf(w, "Name = %s\n", name)
        fmt.Fprintf(w, "Address = %s\n", address)
    default:
        fmt.Fprintf(w, "Sorry, only GET and POST methods are supported.")
    }
}
 
func main() {
    http.HandleFunc("/", hello)
 
    fmt.Printf("Starting server for testing HTTP POST...\n")
    if err := http.ListenAndServe(":8080", nil); err != nil {
        log.Fatal(err)
    }
}




Solving for Power using Work and Time in C


Write a C program to input Work and Time from the user and find Power 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.


Program Listing

/* Solving for Power using Work and Time */

#include <stdio.h>

int main ()
{
int a=0,b=0;
float ans=0.00;
printf("\t Solving for Power using Work and Time.\n\n");
printf("Give the value of Work:");
scanf("%d",&a);
printf("\n\n");
printf("Give the Time in seconds:");
scanf("%d",&b);
printf("\n\n");
ans = (a/b);
printf("The Power is %.2f Watts.",ans);
return 0;
}


Solving for Momentum using Mass and Velocity in C

Write a C program to input Mass and Velocity from the user and find Momentum 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Program Listing


/* Solving for Momentum using Mass and Velocity */

#include <stdio.h>

int main ()
{
int a=0,b=0;
float ans=0.00;
printf("\t Solving for Momentum using Mass and Velocity.\n\n");
printf("Give the value of Mass in kilograms:");
scanf("%d",&a);
printf("\n\n");
printf("Give the value of Velocity in meters/second:");
scanf("%d",&b);
printf("\n\n");
ans = (a*b);
printf("The Momentum is %.2f kg m/s.",ans);
return 0;
}


Solving for Force using Mass and Acceleration in C

A simple program in C language for solving for force using mass and acceleration. 

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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Program Listing

/* Solving for force using mass and acceleration */

#include <stdio.h>

int main ()
{
int a=0,b=0;
float ans=0.00;
printf("\t Solving for Force using Mass and Acceleration.\n\n");
printf("Give the value of Mass in kilograms:");
scanf("%d",&a);
printf("\n\n");
printf("Give the Acceleration in meters/second:");
scanf("%d",&b);
printf("\n\n");
ans = (a*b);
printf("The Force is %.2f Newtons.",ans);
return 0;
}







Do-While in C++

In this article, I would like to share with you how to declare and use a do-while statement in the C++ programming language. The do-while statement is used in many ways in C++ it can be used to repeat a certain statement or code or it can use it we can to re-run again the program.

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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.


Program Listing


#include <iostream>

using namespace std;

int a=0;

int main() {
a=1;

    cout << "\n\n";
cout <<"\tDo While Looping in C++";
cout << "\n\n";
do {
cout << " " << a << " ";
a++;
} while (a<=10);
cout << "\n\n";
cout <<"\tEnd of Program";
}


Using Functions in C++

I this article I would like to share with you guys how to declare and use functions in C++. Functions are very important in C++ programming it makes our program modularize and we can reuse our code in our other programs. It makes software development faster because we have already pre-written and tested code.

Program Listing

#include <iostream>

using namespace std;

void display_message();

int main()
{
display_message();
}

void display_message()
{
cout << "\tWelcome To C++";
}

Functions Tutorial in C++

Do While Looping Statement in C++

Monday, September 23, 2019

Hello World in DOS Batch File

In this article I would like to share with you a sample program that I wrote using  DOS Batch file I called this program hello world. It is very simple batch file program I wrote under Microsoft Windows XP 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.
 

 Sample Program Output

 
Program Listing
 
hello.bat
 
@echo off
cls
echo.
echo Hello World in DOS batch file.
echo.
echo Created By Jake R. Pomperada
echo.

 
 
 

Friday, September 20, 2019

Pointers in Golang

A simple pointer demonstration using Golang 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 in 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.


Program Listing

package main 

import ("fmt"

)

func main() {
x := 100
a := &x

fmt.Println(a)
fmt.Println(*a)

*a = 200
fmt.Println(x)
}