Showing posts with label Greet a Person Using Function Using Go. Show all posts
Showing posts with label Greet a Person Using Function Using Go. Show all posts

Thursday, August 1, 2019

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