Thursday, August 1, 2019

Even and Odd Numbers Checker Using Functions in Go

Write a 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 functions.

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

/* even_odd.go
Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
Date     : July 31, 2019  Wednesday 12:08 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 even_odd_check(num_val int) int {

fmt.Print("\n")
if (num_val%2 == 0) {
fmt.Println("\tYour given number", num_val, "is an EVEN number.")
}

if (num_val%2 != 0) {
fmt.Println("\tYour given number", num_val, "is an ODD number.")
}
   return num_val
}

func main() {

var val1 int

fmt.Print("\n")
fmt.Print("\tEven and Odd Numbers Checker Using Functions")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
fmt.Scanf("%d",&val1)

even_odd_check(val1)

fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}








Fibonacci Sequence Using Functions in Go

Write a program that will ask the user to give a number and then the program will generate a corresponding Fibonacci series of numbers. 

The Fibonacci sequence is a series where the next term is the sum of the previous two terms. 

The first two terms of the Fibonacci sequence is 0 followed by 1.

The Fibonacci sequence example.

1 0, 1, 1, 2, 3, 5, 8, 13, 21

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

/* fibonacci.go
Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
Date     : July 31, 2019  Wednesday 9:00 AM
Location : Bacolod City, Negros Occidental
Website  : http://www.jakerpomperada.com
Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
*/

package main

import (
"fmt"
"strconv"
)


func FibonacciRecursion(n int) int {
if n <= 1 {
return n
}
return FibonacciRecursion(n-1) + FibonacciRecursion(n-2)
}

func main() {

var val1 int

fmt.Print("\n")
fmt.Print("\tFibonacci Sequence Using Functions")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
fmt.Scanf("%d",&val1)

fmt.Print("\n")
fmt.Print("\tThe Fibonacci Sequence Series")
fmt.Print("\n\n")
fmt.Print("\t")
for i := 0; i < val1; i++ {
fmt.Print(strconv.Itoa(FibonacciRecursion(i)) + " ")
}
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}







Factorial Number Solver Using Functions in Golang

Write a program that uses a function that will ask the user to give a number and then the program will compute the factorial equivalent of the given number by the user.

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

/* factorial.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : July 31, 2019  Wednesday  5:52 AM
   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 factorial(a int) int {
fact := 1
for (a>=1){
fact=fact*a;
a--;
    }
return fact;
}


func main() {

var val1, results int

fmt.Print("\n")
fmt.Print("\tFactorial Number Solver Using Functions")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
fmt.Scanf("%d",&val1)

results = factorial(val1)

fmt.Print("\n")
fmt.Print("\tThe factorial value of ",val1," is ",results)
fmt.Print(".")
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}




Fahrenheit To Celsius Converter Using Functions in Go

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

Using the following formula : celsius =(fahrenheit - 32) * 5 / 9;

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

/* temperature.go
   Author : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date   : July 31, 2019   Wednesday   5:36 AM
   Emails : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
*/

package main

import "fmt"

func celsius(temp float64) float64 {
  return (temp - 32) * 5 / 9;
}

func main(){
var temp_given  float64
var display_result float64

fmt.Print("\n")
fmt.Print("\tFahrenheit To Celsius Converter")
fmt.Print("\n\n")
fmt.Print("\tGive Temperature in Fahrenheit :  ")
fmt.Scanln(&temp_given )
display_result = celsius(temp_given);
fmt.Print("\n")
fmt.Print("\tThe temperature in Celsius is ")
fmt.Printf("%0.2f ",display_result)
fmt.Print("degree's celsius.")
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}





Square a Number Using Functions in Golang

Write a program using functions to ask the user to give a number and then the program will convert the given number into the square 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 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

/* square.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : July 31, 2019  Wednesday  5:26 AM
   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 square_number(a int) int {
return(a*a)
}

func main() {

var val1, results int

fmt.Print("\n")
fmt.Print("\tSquare a Number Using Functions")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
fmt.Scanf("%d",&val1)

results = square_number(val1)

fmt.Print("\n")
fmt.Println("\tThe square equivalent of",val1,"is",results,".")
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}





Greet a Person Using Function Using Go

Write a program that will ask the user to give a number and then the program will convert the given name by the user into upper case format and greet the user using a function.

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

/*greet.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Vince V. Latergo
Date : July 30, 2019  Tuesday  2:11 PM
 */

package main

import (
"bufio"
"fmt"
"os"
"strings"
)

func Greet_Person(person string) {
fmt.Print("\n")
fmt.Println("\tHello " + person)

}

func main() {

consoleReader := bufio.NewReader(os.Stdin)

fmt.Print("\n")
fmt.Print("\tGreet a Person Using Function")
fmt.Print("\n\n")
fmt.Print("\tWhat is your name?  : ")
user_name, _ := consoleReader.ReadString('\n')
name_display := strings.ToUpper(user_name)

Greet_Person(name_display)

  fmt.Print("\tEnd of Program")
fmt.Print("\n")
}








Highest and Lowest Value Checker in Golang


Design a program using a one-dimensional array that will ask the user to give a series of numbers and then the program will check and determine which of the given number is the highest and lowest in terms of numerical value and then 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 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

/* highest_lowest.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : July 31, 2019  Wednesday  9:22 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  arr[20] int
var a int
b :=0
min :=0
max := 0

fmt.Print("\n")
fmt.Print("\t\tHighest and Lowest Value Checker")
fmt.Print("\n\n")
fmt.Printf("\tHow many items to be process? : ");
fmt.Scanln(&b);
fmt.Print("\n")
for  a = 0; a < b; a++{
fmt.Printf("\tEnter value in item no. %d : ",a+1);
fmt.Scanln(&arr[a]);
}
max = arr[0];
for  a = 0; a < b; a++ {
if (max < arr[a]) {
max = arr[a];
}
}

min = arr[0];
for  a = 0; a < b; a++ {
if min > arr[a] {
min = arr[a]
}
}
fmt.Printf("\n\n");
fmt.Printf("\t===== DISPLAY RESULT =====");
fmt.Printf("\n\n");
fmt.Printf("\tThe Largest Value is %d.",max);
fmt.Printf("\n\n");
fmt.Printf("\tThe Smallest Value is %d.",min);
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}





One Dimensional Array Demonstration in Go

Here is a very simple program to demonstrate how to use a one-dimensional array in Go.  I am using Goland 2018.3 as my text editor in writing my Go programs.

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

/* example_arrays.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : July 31, 2019  Wednesday  9:22 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() {

score := [12] int {5,10,15,20,25,30,35,40,45,50,55,60};

    a := 0
fmt.Print("\n")
fmt.Printf("\tOne Dimensional Array Demonstration in Go");
fmt.Printf("\n\n");
for a=0; a<12; a++ {
   fmt.Printf("\t");
   fmt.Printf("score[%d]  = %d\n ",a+1,score[a]);
}
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}