Thursday, August 1, 2019

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")
}



Tuesday, July 30, 2019

Odd and Even Number Checker Using If Statement in Golang


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 if statement 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

/* odd_even.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday  Vince V. Latergo
Date : July 28, 2019  Sunday  6:44 AM
 */

package main

import "fmt"

func main() {

var num_val int

fmt.Print("\n")
fmt.Print("\tOdd and Even Number Checker Using If Statement")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
fmt.Scanf("%d",&num_val);

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.")
}
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}









Positive and Negative Number Checker Using If Statement in Golang

Write a program using if statement that will ask the user to give a number and then the program will check determine whether the given number is a positive or negative number. Let us assume the zero belongs to a positive number 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

/* positive_negative.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Latergo
Date : July 28, 2019  Sunday 6:33 AM
 */

package main

import "fmt"

func main() {

var num_val int32

fmt.Print("\n")
fmt.Print("\tPositive and Negative Number Checker Using If Statement")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
fmt.Scanf("%d",&num_val);

fmt.Print("\n")


if (num_val >=0) {
fmt.Println("\tYour given number", num_val, "is a POSITIVE number.")
   }

if (num_val < 0) {
fmt.Println("\tYour given number",num_val, "is a NEGATIVE number.")
}

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








Larger Value Between Two Numbers in Go

Write a program using if statement which identifies the larger of two numbers given the user and displays 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


/*two_numbers.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Vince V. Latergo
Date : July 28, 2019  Sunday  10:40 PM
 */

package main

import "fmt"

func main(){

var  a,b int

fmt.Print("\n")
fmt.Print("\tLarger Value Between Two Numbers")
fmt.Print("\n\n")
fmt.Print("\tGive the First  Value   : ")
fmt.Scanln(&a)
fmt.Print("\tGive the Second Value   : ")
fmt.Scanln(&b)
fmt.Print("\n")

fmt.Print("\t===== DISPLAY RESULTS =====")
fmt.Print("\n\n")

if (a > b) {
fmt.Print("\tThe given number ",a," is much larger value than ",b, ".")
}

if (a < b) {
fmt.Print("\tThe given number ",b," is much larger than ",a, ".")
}

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