Friday, August 16, 2019

US Dollar To Philippine Peso Using Pointers in Golang

Write a program that will ask the user to give currency values in US Dollars and Philippine Peso. The program will convert the US Dollars into its Philippine Peso equivalent using pointers.

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


/* dollar_peso_pointers.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     :August 8, 2019  Thursday   4:40 PM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
 */

package main

import "fmt"


func main() {

var peso float64
var us_dollar float64

fmt.Print("\n")
fmt.Print("\tUS Dollar To Philippine Peso Using Pointers")
fmt.Print("\n\n")
fmt.Print("\tEnter value is US Dollar : ")
fmt.Scanf("%f",&us_dollar)
fmt.Print("\tEnter the rate of Philippines Peso Today : ")
fmt.Scanf("%f",&peso)

us_money := &us_dollar
ph_money := &peso

convert := (*us_money * *ph_money)
fmt.Print("\n")
fmt.Printf("\t$%0.2f US Dollar To Phil. Peso is PHP %0.2f",us_dollar,convert)
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}






Find the Day of the Week Using Pointers in Go


Design a program that will ask the user to print day name of the week using pointers using Golang 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 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

/* find_days_pointers.go
Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
Date     : August 8, 2019  Thursday   4:30 PM
Location : Bacolod City, Negros Occidental
Website  : http://www.jakerpomperada.com
Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
*/

package main

import "fmt"

func main() {
var day int32
fmt.Print("\n")
fmt.Print("\tFind the Day of the Week Using Pointers")
fmt.Print("\n\n")
fmt.Print("\tEnter Day Number (1-7) : ")
fmt.Scan(&day)

days := &day
if *days == 1 {
fmt.Print("\n");
fmt.Print("\tThe given day is Monday.");
} else if *days== 2 {
fmt.Print("\n");
fmt.Print("\tThe given day is Tuesday.");
} else if *days == 3 {
fmt.Print("\n");
fmt.Print("\tThe given day is Wednesday.");
} else if *days == 4 {
fmt.Print("\n");
fmt.Print("\tThe given day is Thursday.");
} else if *days == 5 {
fmt.Print("\n");
fmt.Print("\tThe given day is Friday.");
} else if *days == 6 {
fmt.Print("\n");
fmt.Print("\tThe given day is Saturday.");
} else if *days == 7 {
fmt.Print("\n");
fmt.Print("\tThe give day is Sunday.");
} else {
fmt.Print("\n");
fmt.Print("\tInvalid Input! Please enter day in between 1-7.");
}
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}










Decimal To Roman Numeral Converter Using Pointers in Golang

Write a program that will ask the user to give a  decimal number and then the program will convert the given number into  the roman numeral  equivalent value using pointers/

Decimal Roman
1         I  
4           IV
5         V
9         IX
10         X
40     XL
50          L
90         XC
100         C
400         CD
500         D
900        CM
1000 M

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

/* roman_numeral.go
Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
Date     : August 8, 2019  Thursday   4:30 PM
Location : Bacolod City, Negros Occidental
Website  : http://www.jakerpomperada.com
Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
*/

package main

import (
"fmt"
)

func DecimalToRoman(num int) string {
values := []int{
1000, 900, 500, 400,
100, 90, 50, 40,
10, 9, 5, 4, 1,
}

symbols := []string{
"M", "CM", "D", "CD",
"C", "XC", "L", "XL",
"X", "IX", "V", "IV",
"I"}
roman := ""
i := 0
for num > 0 {
k := num / values[i]
for j := 0; j < k; j++ {
roman += symbols[i]
num -= values[i]
}
i++
}
return roman
}

func main() {

var val_num int

fmt.Print("\n")
fmt.Print("\tDecimal To Roman Numeral Converter Using Pointers")
fmt.Print("\n\n")
fmt.Print("\tGive a Number     : ")
fmt.Scanf("%d",&val_num)

val_num2 := &val_num

result := DecimalToRoman(*val_num2)

fmt.Print("\n")
fmt.Printf("\tThe roman numeral value of %d is %s.",val_num,result)
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}







Power of a Number Using Pointers in Golang

Write a program that will ask the user to give base and exponent values and then the program will compute its power of the number value using pointers using Golang.

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

/* power_number_pointers.go
Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
Date     : August 8, 2019    Thursday     4:19 PM
Location : Bacolod City, Negros Occidental
Website  : http://www.jakerpomperada.com
Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
*/

package main

import (
"fmt"
)


func RecursivePower(base int, exponent int) int {
if exponent != 0 {
return (base * RecursivePower(base, exponent-1))
} else {
return 1
}
}

func main() {

var exponent, base int

fmt.Print("\n")
fmt.Print("\tPower of a Number Using Pointers")
fmt.Print("\n\n")
fmt.Print("\tGive a Base Value     : ")
fmt.Scanf("%d",&base)
fmt.Print("\tGive a Exponent Value : ")
fmt.Scanf("%d",&exponent)

base1     := &base;
        exponent1 := &exponent;

  result := RecursivePower(*base1,*exponent1)

fmt.Print("\n")
fmt.Printf("\tThe result of power calculation is %d",result)
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}











Thursday, August 15, 2019

JavaScript Validation Form

A simple javascript code to validate the HTML form using javascript 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.htm

<html>
<head>
<title>Javascript Validation</title>
</head>
<script>
function validate_form() 
{
var u_name = document.frmname.uname;
var f_name = document.frmname.fname;
if (u_name.value=="" || u_name.value==null)
{
alert("please specify username");
u_name.focus();
return false;
}
else if (f_name.value=="" || f_name.value==null)
{
alert("please specify first name");
f_name.focus();
return false;
}
}
</script>
<body>

<form method="post" onSubmit="return validate_form(this)" name="frmname">
Username <input type="text" name="uname"><br>
First Name<input type="text" name="fname"><br>
<input type="submit" name="submit">
</form>
</body>
</html>





Simple Calculator in PHP


In this article, I would like to share with you guys a simple calculator written in 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


Program Listing

index.php

<html>
<head>
<title>Calculator in PHP<title>
</head>
<script language="javascript">
function validate_form()
{
var num1 = document.entryform.num1;
var num2 = document.entryform.num2;
if(num1.value==""||num1.value==null)
{
alert("Please specify value on first box");
num1.focus();
return false;
}
else if(num2.value==""||num2.value==null)
{
alert("Please specify value on second box");
num2.focus();
reutrn false;
}
}
</script>

<body>

<form method="post" onSubmit="return validate_form(this)" name="entryform">
<fieldset>
<legend>A simple calculator in PHP</legend>
<input type="text" name="num1" value="<?php echo $_REQUEST['num1']?>">
<select name="opt">
<option value="+">+
<option value="-">-
<option value="*">*
<option value="/">/
</select>
<input type="text" name="num2" value="<?php echo $_REQUEST['num2']?>"><br>
<input type="submit" name="submit" value="Calculate">
<br>
<span id="result">
Result is
<strong>
<?php
if($_REQUEST['opt']=="+"){
echo $_REQUEST['num1']+$_REQUEST['num2'];
}
else if($_REQUEST['opt']=="-"){
echo $_REQUEST['num1']-$_REQUEST['num2'];
}
else if($_REQUEST['opt']=="/"){
echo $_REQUEST['num1']/$_REQUEST['num2'];
}
else if($_REQUEST['opt']=="*"){
echo $_REQUEST['num1']*$_REQUEST['num2'];
}
?>
</strong>
</span><br>
<span id="navigation"><a href="index.php">Calculate Again</a></span>
</fieldset>
</form>

</body
</html>

Hello World in PHP

A simple PHP script to display a hello world message 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


Program Listing


hello.php

<html>
<head>
<title>Hello World in PHP</title>
</head>

<body>

<?php

echo"hello world";
?>

</body>
</html>


Pyramid and Triangle Image in C++

A simple C++ program to generate pyramid and triangle image using for loop statement.

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


#include <cstdlib>
#include <iostream>

using namespace std;


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

cout << "\n\n";
for (int row=1; row<=7; row++) {
        for (int col=0; col<row; col++) {
            cout << "*";
        }
        cout << endl;  // end the line.
    }

cout << "\n";


for (int row=1; row<=6; row++) {
        for (int col=0; col<row; col++) {
            cout << "*";
        }
        cout << endl;  // end the line.
    }

for (int row=6; row>=1; row--) {
        for (int col=1; col<row; col++) {
            cout << "*";
        }
        cout << endl;  // end the line.
    }

    
    system("PAUSE");
    return EXIT_SUCCESS;
}