Friday, May 24, 2019

Power of a Number Using Ruby

Here is a simple program to solve the power of a given number by the user using Ruby programming language.

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


Program Listing

# power.rb
# Written By Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
# Tools : Ruby 2.6.3 and Sublime Text Editor 
# May 13, 2019    Monday   9:48 PM
# Bacolod City, Negros Occidental
# Website       : http://www.jakerpomperada.com
# Email Address : jakerpomperada@gmail.com

puts "\n\n"
print "\tPower of a Number";
puts "\n\n"
print "\tEnter a Base Number : ";
base = gets;
print "\tEnter an Exponent  : ";
exponent = gets;

base = base.to_i;
exponent = exponent.to_i;

solve_power = (base ** exponent);

print "\n\n";
print "\tDISPLAY RESULTS";
print "\n\n";
print "\t#{base} ^ #{exponent} = #{solve_power}";
puts "\n\n";
print "\tEnd of Program";
puts "\n";

Greetings Program in Ruby

A simple greetings program that I wrote using Ruby programming language.

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


Program Listing

# greet.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 10, 2019     Friday
# Address  : Bacolod City, Negros Occidental
# Tools    : Sublime Text and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 10, 2019   Friday
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
print "\n\n";
print "\tGreetings Program";
print "\n\n";
print "\tGive your First Name : "
fname = gets.chomp
print "\n";
print "\tGive your Last Name  : "
lname = gets.chomp
print "\n\n";
print "\tHello #{fname.upcase} #{lname.upcase}.";
print "\n\n";
print "\tWelcome to Ruby Programming.";
print "\n\n";
print "\tEnd of Program";
print "\n";

Parameter and Area of the Circle Solver in Ruby

A simple program that I wrote using Ruby programming language to solve the parameter and area of the circle.

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


Program Listing

# area_circle.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 10, 2019     Friday
# Address  : Bacolod City, Negros Occidental
# Tools    : Sublime Text and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
radius = 5.00;
perimeter = 0.00;
area = 0.00;

print "\n\n";
print "\tParameter and Area of the Circle Solver";
print "\n\n";
print "\tRadius of the circle: ";

radius = gets.to_f
perimeter = 2 * 3.141592653 * radius;
area = 3.141592653 * radius * radius;

print "\n";
print "\tDISPLAY RESULTS"
print "\n\n";
puts "\tThe perimeter is %.2f of the circle." % perimeter
print "\n";
puts "\tThe area is %.2f of the circle." % area
print "\n";
print "\tEnd of Program";
print "\n";




Basic Math Operations in Ruby

A program to show you basic math operations in the ruby programming language.

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


Program Listing


# math.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 15, 2019    Wednesday  2;16 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE for JavaScript and Web Developers 
#            and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tBasic Math Operations";
puts "\n\n"
print "\tGive First Value  : ";
val1 = gets;
print "\tGive Second Value : ";
val2 = gets;

val1 = val1.to_i;
val2 = val2.to_i;

sum = (val1 + val2);
difference = (val1 - val2);
product = (val1 * val2);
quotient = (val1 / val2);

print "\n\n";
print "\t===== DISPLAY RESULT ====="
print "\n\n";
print "\tThe sum of ",val1," and ",val2," is ",sum,".\n";
print "\tThe difference between #{val1} and #{val2} is #{difference}.\n";
print "\tThe product of #{val1} and #{val2} is #{product}.\n";
print "\tThe quotient between #{val1} and #{val2} is #{quotient}.";
puts "\n\n"
print "\tEnd of Program";
puts "\n"


Swap Two Numbers Using Ruby

A simple program to ask the user two numbers and then the program will swap the arrangement of the two numbers and 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




Program Listing

# swap.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 15, 2019    Wednesday  3:07 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tSwap Two Numbers";
puts "\n\n"
print "\tGive First Value  : ";
a = gets;
print "\tGive Second Value : ";
b = gets;

a = a.to_i;
b = b.to_i;
print "\n\n";
print "\tBefore Swapping";
print "\n\n";
print "\tA = #{a} and B = #{b} ";

# Swapping of values here
   temp = a;
   a = b;
   b = temp;

print "\n\n";
print "\t===== DISPLAY RESULT ====="
print "\n\n";
print "\tAfter Swapping";
print "\n\n";
print "\tA = #{a} and B = #{b} ";
print "\n\n\n";
print "\tEND OF PROGRAM";
print "\n\n";




Find Maximum Value Between Two Numbers in Ruby

A simple program that I wrote using Ruby programming language to find the maximum value between two numbers. I am still a beginner in Ruby programming I hope you will find my work useful.

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

# maximum.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 23, 2019   Thursday  2:42 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tFIND MAXIMUM BETWEEN TWO NUMBERS CHECKER";
puts "\n\n"
print "\tGive First Value  : ";
a = gets.chomp
a = a.to_i;
print "\tGive Second Value : ";
b = gets.chomp
b = b.to_i;

print "\n\n";
print "\t===== DISPLAY RESULT ====="
print "\n\n";

if(a > b)
   print("\tThe first number #{a} is maximum.");
else    
   print("\tThe second number #{b} is maximum.");
end  

print "\n\n";
print "\tEND OF PROGRAM";
print "\n\n";




Tuesday, May 21, 2019

Money Bill Checker in Ruby

Here is a copy that I converted from C into Ruby I called this program money bill checker. Write and Design a program that will ask the user to give an amount and then the program will check and determine the money bill denomination based on the amount given by the user. The money bill denomination to be used in the program will be 500,100,50,20,10,5,2 and 1 bills.

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

# bill.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 21, 2019   Wednesday
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tMoney Bill Checker";
puts "\n\n"
print "\tEnter amount:   ";
amount = gets;
amount = amount.to_i;
if(amount >= 500)
        note500 = amount/500;
        amount -= note500 * 500;
else
  note500 = 0;
end   
  
if(amount >= 100)
        note100 = amount/100;
        amount -= note100 * 100;
else
  note100 = 0;
 end
    
if(amount >= 50)
     note50 = amount/50;
     amount -= note50 * 50;
else
  note50 = 0;       
end

if(amount >= 20)
     note20 = amount/20;
     amount -= note20 * 20;
else 
  note20 = 0;  
end
   
if(amount >= 10)
       note10 = amount/10;
       amount -= note10 * 10;
else 
   note10 = 0;    
end

if(amount >= 5)
     note5 = amount/5;
     amount -= note5 * 5;
else
   note5 = 0;     
end

if(amount >= 2)
    note2 = amount /2;
    amount -= note2 * 2;
else
  note2 = 0;    
end
   
if(amount >= 1)
     note1 = amount;
else
  note1 = 0;     
end    
   
print("\n\n");
print("\t===== DISPLAY RESULT =====");
print("\n\n");
print("\tTotal number of notes = \n");
print("\n\n");
print("\t500 =  #{note500}\n");
print("\t100 =  #{note100}\n");
print("\t50  =  #{note50}\n");
print("\t20  =  #{note20}\n");
print("\t10  =  #{note10}\n");
print("\t5   =  #{note5}\n");
print("\t2   =  #{note2}\n");
print("\t1   =  #{note1}\n");
print "\n\n";
print "\tEND OF PROGRAM";
print "\n\n";




Addition of Two Numbers in Swift

Here is a sample program to add the two numbers using Swift. I am still a beginner in Swift programming.

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

addition.swift


/* addition.swift
   Created By Mr. Jake Rodriguez Pomperada,MAED-IT
   May 21, 2019
 */

import Swift

print("\n")
print("\tAddition of Two Numbers in Swift")
print("\n")
print("\tGive first value : ");
 var a = Int(readLine()!);
print("\tGive second value : ")
  var b = Int(readLine()!);

var c = a!+b!;
print("\tThe sum is \(c).")
print("\n")
print("\tEnd of Program")
print("\n")


Hello World Using Swift

A very simple program that I wrote using Swift programming language in Windows operating system which I download in this web address https://swiftforwindows.github.io/  I hope you will find my work useful.


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


helloworld.swift

// Hello World Program in Swift
// May 21, 2019 Bacolod City, Negros Occidental Philippines

import Swift

print("\n")
print("\tHello, World From Swift From Jake R. Pomperada")
print("\n")
print("\tEnd of Program")
print("\n")