Wednesday, May 29, 2019

Character Value Checker in Ruby

 Write a program to check whether a character is an alphabet, digit or special character given by the user using nested if..else statement 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



Sample Program Output


Program Listing

# character.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 29, 2019  Wednesday 4:22 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tCharacter Value Checker";
print "\n\n"
print "\tEnter any character: ";
ch = gets.chomp
print "\n";
print "\t===== DISPLAY RESULT ====="
print "\n\n";
if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
   print "\tThe given value #{ch.upcase} is an Alphabet";
elsif (ch >= '0' && ch <= '9');
   print "\tThe given value #{ch} is a Digit.";
else
  printf "\tThe given value #{ch} is a Special Character.";
end
print "\n\n";
print "\tEND OF PROGRAM";
print "\n\n";




Kilometers To Miles Distance Converter in Ruby

Write a program that will ask the user a kilometer value and then the program will convert the given kilometer value into its miles equivalent and display the result on the screen using Ruby programing 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



Sample Program Output


Program Listing

# km_miles.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 16, 2019   Thursday  4:21 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 "\tKilometers To Miles Distance Converter";
puts "\n\n"
# conversion factor for milses
miles_value = 0.621371

print "\tHow Many Kilometer(s) :  ";
kilometers = gets;
kilometers = kilometers.to_f;

# calculate miles 
miles = kilometers * miles_value;

print "\n";
print "\t===== DISPLAY RESULT =====";
print "\n\n";
print "\t%.2f kilometers is equal to "  % kilometers
print   "%.2f miles" % miles
print "\n\n";
print "\tEND OF PROGRAM";
print "\n\n";



Loan Interest Solver in Ruby

Create a program that will ask the user the principal amount, number of years and interest rate of the loan of the customer and then the program will compute the interest amount to be paid by the customer and display the result on the screen 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



Sample Program Output


Program Listing

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

puts "\n\n"
print "\tLoan Interest Solver";
puts "\n\n"
print "\tEnter Principal Amount PHP  : ";
principal = gets;
print "\tEnter No. of Years          : ";
time = gets;
print "\tEnter Percent Rate %        : ";
rate = gets;

principal = principal.to_f;
time = time.to_f;
rate = rate.to_f;

solve_interest = (principal * time * rate) / 100;

print "\n\n";
print "\tDISPLAY RESULTS";
print "\n\n";
print "\tThe total interest is PHP %.2f for #{time} year(s)." % solve_interest;
puts "\n\n";
print "\tEnd of Program";
puts "\n";



Sum of Two Numbers Using F#

A simple program that I wrote using F# to compute the sum of two numbers.

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

// Created By Jake R. Pomperada
// May 28, 2019

open System

let a = 1
let b = 4

let sum = a + b

printfn "The total sum is %d." sum


Monday, May 27, 2019

Product of Two Numbers Using PL/SQL

A very simple program to solve the product of two numbers using PL/SQL language. I am still a beginner in PL/SQL 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

Set serveroutput on;

declare
a number(2);
b number(2);
c number(2);
begin
a:=&a;
b:=&b;
c:=a*b;
dbms_output.put_line('Product of Two Numbers');
dbms_output.put_line(a|| ' * '||b||' = '||c);
end;

Addition of Two Numbers in PL/SQL

Here is a sample program that I wrote using PL/SQL to ask the user to give two numbers and the program will compute the sum 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

Sample Program Output


Program Listing

Set serveroutput on;

Declare
Var1 integer;
Var2 integer;
Var3 integer;
Begin
Var1:=&var1;
Var2:=&var2;
Var3:=var1+var2;
dbms_output.put_line('Addition of Two Numbers in PL/SQL');
Dbms_output.put_line(var3);
End;


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";