Tuesday, July 30, 2019

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


Monday, July 22, 2019

Grade Equivalent Using Switch Statement Using Go


Write a program using a switch statement to ask the students its grade and then the program will display the numerical equivalent of the given grade and its remarks on the screen based on the following given scale.

Grade Interval          Equivalent Grade        Remarks

97..100                  1.0                               EXCELLENT
94..96                      1.25                             EXCELLENT
91..93                      1.5                               VERY GOOD
88..90                      1.75                             VERY GOOD
85..87                      2.0                               GOOD
82..84                      2.25                             GOOD
79..81                      2.5                               SATISFACTORY
76..78                      2.75                             FAIR
75                            3.0                               PASSED
Below 75                 5.0                               FAILED




Sample Program Output


Program Listing

grade.go

/* grade.go
Authors  
Mr. Jake R. Pomperada
Mr. Rollyn M.  Moises
Mr. Sunday Latergo
Date : July 22, 2019  Monday  5:15 AM
 */

package main

import "fmt"

func main() {

var grade int32

fmt.Print("\n")
fmt.Print("\tGrade Equivalent Using Switch Statement")
fmt.Print("\n\n")
fmt.Print("\tPlease enter your grade : ")
fmt.Scanf("%d",&grade)

fmt.Print("\n")

switch (grade) {
case 97,98,99,100 :
   fmt.Println("\tYour grade equivalent is 1.0")
   fmt.Println("\tThe remarks is EXCELLENT.")
case 94,95,96 :
fmt.Println("\tYour grade equivalent is 1.25")
fmt.Println("\tThe remarks is EXCELLENT.")
case 91,92,93 :
   fmt.Println("\tYour grade equivalent is 1.5")
   fmt.Println("\tThe remarks is VERY GOOD.")
case 88,89,90 :
fmt.Println("\tYour grade equivalent is 1.75")
fmt.Println("\tThe remarks is VERY GOOD.")
case 85,86,87 :
   fmt.Println("\tYour grade equivalent is 2.0")
   fmt.Println("\tThe remarks is GOOD.")
case 82,83,84 :
fmt.Println("\tYour grade equivalent is 2.5")
fmt.Println("\tThe remarks is GOOD.")
case 79,80,81 :
   fmt.Println("\tYour grade equivalent is 2.25")
   fmt.Println("\tThe remarks is SATISFACTORY.")
case 76,77,78 :
fmt.Println("\tYour grade equivalent is 2.75")
fmt.Println("\tThe remarks is FAIR.")
  case 75 :
fmt.Println("\tYour grade equivalent is 3.0")
fmt.Println("\tThe remarks is PASSED.")
  default :
fmt.Println("\tYour grade equivalent is 5.0")
fmt.Println("\tThe remarks is FAILED.")
 }

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