Tuesday, July 30, 2019

Qualified to Vote Program Using If Statement Using Golang


Write a program using an if statement that will ask the person's name and age. The program will greet the person by making the person's name display in upper case format and check and determine if the given age of the person is qualified to vote or not 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

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

package main

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

)

func main() {
consoleReader := bufio.NewReader(os.Stdin)

var age int

fmt.Print("\n")
fmt.Print("\tQualified to Vote Program Using If Statement")
fmt.Print("\n\n")
fmt.Print("\tWhat is your name?   : ")
user_name, _ := consoleReader.ReadString('\n')
fmt.Print("\n")
fmt.Print("\tWhat is your age?    : ")
fmt.Scanln(&age)

name_display := strings.ToUpper(user_name)

fmt.Print("\n")

if (age >= 18) {
fmt.Println("\tHello", name_display)
fmt.Print("\tAt the age of ",age, " years old you are qualified to vote.")
}

if (age < 18) {
fmt.Println("\tHello", name_display)
fmt.Print("\tAt the age of ",age, " years old  sorry you are still a minor.")
}

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














Gender Checker Using If Statement in Golang


Write a program using an if statement that will ask the person's name and gender. The user can type either letter F for Female or M for Male. The program will greet the person by making the person's name display in upper case format and display what is the gender of the person's 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

/* gender.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Vince V. Latergo
Date : July 28, 2019  Sunday   5:42 AM
 */

package main

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

func main() {
consoleReader := bufio.NewReader(os.Stdin)
fmt.Print("\n")
fmt.Print("\tGender Checker Using If Statement")
fmt.Print("\n\n")
fmt.Print("\tWhat is your name?   : ")
user_name, _ := consoleReader.ReadString('\n')
fmt.Print("\n")
fmt.Print("\tSelect M - Male  F - Female")
fmt.Print("\n\n")
fmt.Print("\tWhat is your gender? : ")
gender, err := consoleReader.ReadByte()
name_display := strings.ToUpper(user_name)
if err != nil {
panic(err)
}
gender = byte(unicode.ToLower(rune(gender)))

fmt.Print("\n")

if (gender == 'f') {
fmt.Println("\tHello", name_display)
fmt.Printf("\tYou are certified FEMALE.")
}
if (gender == 'm') {
fmt.Println("\tHello", name_display)
fmt.Printf("\tYou are certified MALE.")
}

if (gender != 'f'  && gender  != 'm') {
fmt.Printf("\tInvalid Gender Value. Try Again.")
}
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}












User Defined Function in Golang

Here is a simple program that I wrote using Golang that demonstrate how to write a user-defined function in 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

/*example1.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Vince V. Latergo
Date : July 30, 2019  Tuesday  5:24 AM
 */

package main

import "fmt"

func UserDefinedFunction() {
fmt.Print("\n\n")
fmt.Println("\t\t\t\tIntroduction to Go Programming")
fmt.Println("\t\t\t\t\t\t\tBy")
fmt.Println("\tJake R. Pomperada, Rollyn M. Moises and Sunday Vince V. Latergo ")
fmt.Print("\n\n")
}

func main() {
fmt.Print("\n")
fmt.Print("\tExample of User Defined Function in Go")
UserDefinedFunction();
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}



Addition of Three Numbers Using Functions Using Go


Write a program that will ask the user to give three numbers and then the program will compute the sum of the three numbers and display the results on the screen using function 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

/* add_functions.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : July 30, 2019  Tuesday  5:39 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 add(a int, b int, c int) int {
return a + b + c
}


func main() {

var val1 int
var val2 int
var val3 int

fmt.Print("\n")
fmt.Print("\tAddition of Three Numbers Using Functions")
fmt.Print("\n\n")
fmt.Print("\tEnter Three Numbers : ")
fmt.Scanf("%d %d %d",&val1,&val2,&val3)

sum := add(val1,val2,val3)

fmt.Print("\n")
fmt.Println("\tThe sum of",val1,",",val2, "and",val3 ,"is",sum,".")
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}






Count Digits Using Function Statement in Golang

Write a program that will ask the user to give a number and then the program will count the number of digits on the given number by the user using function 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

/*count_digits.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Latergo
Date : July 30, 2019  Tuesday  5:13 AM
 */

package main

import "fmt"


func CountDigits(i int) (count int) {
for i != 0 {
i /= 10
count = count + 1
}
return count
}

func main() {

var num_val int

fmt.Print("\n")
fmt.Print("\tCount Digits Using Function Statement")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
_, err := fmt.Scanf("%d",&num_val);

if err != nil {
fmt.Println(err)
}
fmt.Print("\n");
fmt.Print("\tDISPLAY RESULTS");
fmt.Print("\n\n");
fmt.Println("\tThere are ",CountDigits(num_val), "digit(s) in the given number",num_val)
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}










Hello World in Kotlin

Here is a simple hello world program that I wrote using Kotlin programming language. I am a beginner in Kotlin programming. I hope you will find my work useful. I am using Eclipse IDE as my text editor in writing this 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





Sample Program Output


Program Listing

hello.kt

// Hello World Program
// hello.kt
// Author : Jake R. Pomperada
/* July 30, 2019  */
fun main(args : Array<String>) {
println("\n\n")
    println("\tHello, World!!! Jake Rodriguez Pomperada")
}

Monday, July 29, 2019

Odd and Even Number Generator Using for Statement in Go

Write a program using the for statement that will ask the user to give a number then the program will display the series of numbers and it's corresponding results whether the number is odd or even number.

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  8:18 am
 */

package main

import "fmt"

func main() {

var num_val int

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

for i := 1; i <= num_val; i++ {
fmt.Print("\t")
if i % 2 == 0 {
fmt.Println("The number",i, "EVEN number.")
} else {
fmt.Println("The number",i, "ODD number.")
}    }
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}



Multiplication Table Generator in Go

Write a program that will ask the user to give a number and then the program will generate a multiplication table based on 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

/*multiplication_table.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Vince V. Latergo
Date : July 28, 2019  Sunday  8:01 AM
 */

package main

import "fmt"

func main(){

var  a int

fmt.Print("\n")
fmt.Print("\tMultiplication Table Generator")
fmt.Print("\n\n")
fmt.Print("\tGive a Number to generate the multiplication table : ")
fmt.Scanln(&a)
fmt.Print("\n")

for n := 1; n <= 12; n++ {
fmt.Print("\t")
fmt.Println(a, " X ", n, " = ", a*n)
}
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}