Tuesday, June 4, 2019

Legal Age Checker Using unless Statement in Ruby

Write a program that will ask the user's age using unless statement to check if the given age by the user is still a minor or already an adult 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


# age.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : June 3, 2019   Monday  4:46 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@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tLegal Age Checker Using unless";
puts "\n\n"
print "\tWhat is your age?  ";
age = gets.chomp
age = age.to_i;

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

unless (age >= 18)
   print("\tYour age is #{age} years old.\n\n");
   print("\tYou are still a MINOR.")
else    
   print("\tYour age is  #{age} years old.\n\n");
   print("\tYou are already an ADULT.")
end  

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



Positive and Negative Number Checker Using unless in Ruby


Write a program that will ask the user to give a number using unless a statement to check if the given number is a positive or negative number and display the results 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

# pos_neg.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : June 3, 2019   Monday  4: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@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tPositive and Negative Number Checker Using unless";
puts "\n\n"
print "\tGive a number  : ";
num = gets.chomp
num = num.to_i;

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

unless (num >= 0)
   print("\tThe given number #{num} is a NEGATIVE number.");
else    
   print("\tThe given number #{num} is a POSITIVE number.");
end  

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

Odd and Even Number Checker Using unless in Ruby


Write a program using if else statement to ask the user to give a number and then the program will check and determine if the given number by the user is odd or even number using unless conditional statement and displays the results 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


# odd_even.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 30, 2019   Thursday  11:36 AM
# 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@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tOdd and Even Number Checker Using unless";
puts "\n\n"

print "\tGive a number  : ";
num = gets.chomp
num = num.to_i;

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

unless (num % 2 == 0)
   print("\tThe given number #{num} is a ODD number.");
else    
   print("\tThe given number #{num} is a EVEN number.");
end  

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



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