Tuesday, July 30, 2019

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




Display a Series of Numbers Using Go


Write a program that will ask the user to give a number and then the program will display a series of numbers based on the given number by the user 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

/*for_example1.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("\tDisplay a Series of Numbers")
fmt.Print("\n\n")
fmt.Print("\tGive a Number : ")
fmt.Scanln(&a)
fmt.Print("\n")
fmt.Print("\t===== DISPLAY RESULTS =====")
fmt.Print("\n\n")
for x := 1; x <= a; x+=1 {
fmt.Print("\t",x,"")
}
fmt.Print("\n\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}




Thursday, July 25, 2019

Display Series of Numbers Using Ranges in Ruby

Write a program using the range to ask the user to give a number and then the program will list down the series of numbers 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

# display.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : July 18, 2019   Thursday   3:35 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Website  : http://www.jakerpomperada.com
# Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com

  print "\n"
  print "\t===== Display Series of Numbers Using Ranges ====="
  print "\n\n"
  print "\tGive a Number : "
  val_num = gets.to_i
    
  print("\n") 
  print("\t")
  print("The list of numbers are follows:")
  num_arrays = (1..val_num).to_a
  print("\n\n") 
  print("\t")
  print("#{num_arrays} ")
 print "\n\n";
 print "\tEnd of Program"


Reverse a Number Using Ranges in Ruby

Write a program using ranges that will display a series of numbers from 1 to 15 in reverse order.

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

# reverse.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : July 18, 2019   Thursday   4:23 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Website  : http://www.jakerpomperada.com
# Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com

  print "\n"
  print "\t===== Reverse a Number Using Ranges ====="
  print "\n\n"
   print("\n") 
  print("\t")
  for a in (1..15).to_a.reverse
    print(" #{a} ")
    end
    
print "\n\n";
print "\tEnd of Program"

Alphabets Using Ranges Using Ruby

Write a program using ranges to display alphabet letters on the screen from letter A to Z using Ruby.

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


alphabets,rb

# alphabets.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : July 18, 2019   Thursday   4:34 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Website  : http://www.jakerpomperada.com
# Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com

  print "\n"
  print "\t===== Alphabets Using Ranges ====="
  print "\n\n"
  print("\t")
  for a in ('A'..'Z')
    print(" #{a} ")
  end
  print "\n\n";
  print "\tEnd of Program"


Even Numbers Using Intervals in Ranges in Ruby

Write a program using intervals in ranges to display a series of even numbers from 0 to 25 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

even.rb

# even.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : July 19, 2019   Friday   1:31 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Website  : http://www.jakerpomperada.com
# Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com

  print "\n"
  print "\t===== Even Numbers Using Intervals in Ranges ====="
  print "\n\n"
  print("\t")
  0.step(25,2) do |num|
  print " #{num} "
end
  print "\n\n";
  print "\tEnd of Program"

Tuesday, July 23, 2019

Legal Age Checker Using Switch Statement Using Go

Write a program using a switch statement that will ask the person to give their age. The program will check and determine whether the given age of the person is already considered as an adult or still a minor.

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

/* legal_age.go
Authors
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday V. Latergo
Date : July 23, 2019  Tuesday 9:01 AM
 */

package main

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

func main() {

consoleReader := bufio.NewReader(os.Stdin)
var age int32

fmt.Print("\n")
fmt.Print("\tLegal Age Checker Using Switch Statement")
fmt.Print("\n\n")
fmt.Print("\tWhat is your name? : ")
user_name, _ := consoleReader.ReadString('\n')
fmt.Print("\tWhat is your age?   : ")
  fmt.Scanf("%d",&age);
fmt.Print("\n")
name_display := strings.ToUpper(user_name)
switch {
case  age >= 18 :
fmt.Println("\tHello",name_display,".")
fmt.Println("\tAt the age  of ",age, " years old you are already an Adult.")
default :
fmt.Println("\tHello ",name_display,".")
fmt.Println("\tAt the age  of ",age, "you are still a  Minor.")
}
}