Sunday, June 30, 2019

Menu Driven Temperature Program in Python


Write a menu-driven program that uses a function to convert the following temperatures Fahrenheit to Celsius & Kelvin, Celsius to Fahrenheit & Kelvin and Kelvin to Fahrenheit & Celsius. The program also has an exit program option in order for the user to quit the program.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

# temperature.py
# Rollyn M. Moises and Jake R. Pomperada
# February 28, 2019    Thursday
# Bacolod City, Negros Occidental


def fah():
    print();
    F=int(input('\tEnter the temperature on Fahrenheit(F) : '));
    C=(F - 32) * 5/9;
    K=(F - 32) * 5/9 + 273.15;
    print();
    print("\tFahrenheit Value :",round(F,2));
    print("\tCelsius Value :",round(C,2));
    print("\tKelvin Value:",round(K,2));
    print();
    print("\tEND OF PROGRAM");

def cel():
    print();
    C=int(input('\tEnter the temperature on Celsius(C) : '));
    F=(C * 9/5) + 32;
    K=C + 273.15;
    print();
    print("\tFahrenheit Value :",round(F,2));
    print("\tCelsius Value :",round(C,2));
    print("\tKelvin Value:",round(K,2));
    print();
    print("\tEND OF PROGRAM");

def kel():
    print();
    K=int(input('\tEnter the temperature on Kelvin(K) : '));
    F=(K - 273.15) * 9/5 + 32;
    C=K - 273.15;
    print();
    print("\tFahrenheit Value :",round(F,2));
    print("\tCelsius Value :",round(C,2));
    print("\tKelvin Value:",round(K,2));
    print();
    print("\tEND OF PROGRAM");

print();
print("\t===== MAIN MENU =====");
print();
print("[1] Fahrenheit to Celsius & Kelvin");
print("[2] Celsius to Fahrenheit & Kelvin");
print("[3] Kelvin to Fahrenheit & Celsius");
print("[4] Exit Program");
print();
n=int(input('\tEnter the choice: '));
if n==1:
      fah()
elif n==2:
      cel()
elif n==3:
      kel()
elif n==4:
      exit()
else:
      print('Invalid options')


Odd and Even Number Checker Using a Function in Python


Write a program that will ask the user to give an integer number and then the program will check if the given number is odd or even using a function in Python programming language.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

# odd_even.py
# Rollyn M. Moises and Jake R. Pomperada
# February 28, 2019    Thursday
# Bacolod City, Negros Occidental


def is_odd_even(input_num):
    if input_num % 2 == 0:
        print();
        print("   ",input_num, "is EVEN number.");
    else:
        print();
        print("   ",input_num, "is ODD number.");


print();
print("\tOdd and Even Number Checker Using a Function");
print();
a = int(input("\tGive a Number : "));
is_odd_even(a);
print();
print("\tEND OF PROGRAM");



Factorial of a Number Using Functions in Python


Write a program that will ask the user to give a number and then the program will compute its factorial value of the given number and display the result on the screen. The program also asks the user if the user will continue using the program or not. If the user chooses Y for yes the program will run again but if the user chooses N for no the program will display a thankful message and return to the operating system.


If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

# factorial.py
# Rollyn M. Moises and Jake R. Pomperada
# February 25, 2019    Tuesday
# Bacolod City, Negros Occidental


def factorial(number):
    solve_results = 1
    for i in range(2, number + 1):
        solve_results *= i
    return solve_results


def my_program():
  print();
  print("\t@==================================@")
  print("\t      Factorial of a Number     ")
  print("\t@==================================@")
  print();
  value = int(input("\tEnter a Number : "))
  print("");
  if value < 0:
    print("\tSorry, factorial does not exist for negative numbers")
  elif value == 0:
    print("\tThe factorial of 0 is 1")
  else:
    print("\tThe factorial of",value,"is",factorial(value))
  print();
  repeat = input('\tDo you want to continue ? (Y/N) : ')
  if repeat.upper() == "N":
      print()
      print("\tThank You For Using This Program.")
      print();
      print("\tEND OF PROGRAM");
      quit

  if repeat.upper() == "Y":
      my_program()

if __name__ == '__main__':
    my_program()



Two Dimensional Arrays in Ruby

Here is a sample program to show you how to declare and use two-dimensional arrays in Ruby programming language. I find Ruby programming language very easy very similar to Python. I enjoy learning Ruby as an alternative programming language to teach computer programming in schools.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

# demo1.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : June 29, 2019  Saturday  3:51 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 "\tTwo Dimensional Array Example ";
puts "\n\n"
val_items = Array.new(5) { Array.new(0)}
sum = 0;
sum = sum.to_i;

5.times do |x|
  print "\tGive value in item no. #{x+1} : "
  val_items[x] = gets.chomp
  val_items[x]  = val_items[x].to_i;
end

puts("\n");
print "\t===== LIST OF GIVEN VALUES ====="
print "\n\n";
print("\t");
for i in val_items
print "" + i.to_s + " "
end

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

Login System Using Visual Basic 6 and MySQL

In this article, I would like to share with you the work of my friend, fellow software engineer and business partner Mr. Larry Dave Lacapag Emol he is a Visual Basic 6 Developer who wrote many applications in Visual Basic for 8 years already. You can also visit his website which contains many free source code in Visual Basic 6 free to download at the following web address https://davesterz.blogspot.com/

This program is a login system that has a backend database MySQL the code is very easy to follow and understand feel free to use in your own programming project.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

toturial.sql

-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 29, 2019 at 07:20 PM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.6.15

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `toturial`
--

-- --------------------------------------------------------

--
-- Table structure for table `tb_user`
--

CREATE TABLE `tb_user` (
  `ID` int(11) NOT NULL,
  `USERNAME` varchar(50) NOT NULL,
  `PASSWORD` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_user`
--

INSERT INTO `tb_user` (`ID`, `USERNAME`, `PASSWORD`) VALUES
(1, 'admin', 'admin');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `tb_user`
--
ALTER TABLE `tb_user`
  ADD PRIMARY KEY (`ID`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `tb_user`
--
ALTER TABLE `tb_user`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;



Saturday, June 29, 2019

Sum of all Odd and Even Numbers in C

A very simple program that I wrote using the C Programming language to sum all the values of odd and even numbers.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

#include <stdio.h>
 
int  main()
{
    int i, num, odd_sum = 0, even_sum = 0;
 
    printf("Enter the value of num\n");
    scanf("%d", &num);
    for (i = 1; i <= num; i++)
    {
        if (i % 2 == 0)
            even_sum = even_sum + i;
        else
            odd_sum = odd_sum + i;
    }
    printf("Sum of all odd numbers  = %d\n", odd_sum);
    printf("Sum of all even numbers = %d\n", even_sum);
}

Applications of C Programming Language

The C programming language developed by Dr. Dennis M. Ritchie in 1972 has many applications below is the list of its applications.


Applications of C Programming Language

Through the years of its existence in the software development world. The C programming language is being used to create a wide range of software application. Some of the applications of C language is given below.

  • The C programming language is primarily being used in the development of embedded software’s that are being used in mobile phones, microwave oven, washing machines and smart television for example.
  • The C language was being used developed popular database management systems like Oracle Database, MySQL, Dbase, CA-Clipper, FoxBASE, Microsoft FoxPro, SQLite, and PostgreSQL.
  • Operating systems like UNIX and Linux is written entirely in C language.
  • The creation and the development of computer games like Quake II and Doom is written entirely in C language.

  • Statistical software and programming languages like R and numerical analysis software like MATLAB, Freemat and GNU Octave are written in C.

  • Scripting programming languages like PHP, Perl, bash, csh, HTML, Javascript, make and tcl are all written in C.
  • Image editing software like GIMP (GNU Image Manipulation Program) and darktable are written entirely in C programming language.

  • Text editor software like Vim, vi, Metapad, Geany, and Emacs are written in C programming language.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

Highest and Lowest Value Checker in C

Design a program using a one-dimensional array that will ask the user to give a series of numbers and then the program will check and determine which of the given number is the highest and lowest in terms of numerical value and then display the result on the screen.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

/* highest_lowest.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : November 29, 2018  Thursday  3:35 PM
   Location : Bacolod City, Negros Occidental
   Tool     : Dev C++ Version 5.11
   Website  : http://www.jakerpomperada.com
   Email    : jakerpomperada@jakerpomperada.com and jakerpomperada@gmail.com
*/
#include <stdio.h>
int main ()
{
    int arr[20], b=0, max=0, min=0;
    printf("\n\n"); 
    printf("\t\tHighest and Lowest Value Checker");
    printf("\n\n");
    printf("\tHow many items to be process? : ");
    scanf("%d",&b);
    printf("\n\n");
    printf("\tEnter items values : ");
    for (int a = 0; a < b; a++){
     scanf("%d",&arr[a]);
      }
        max = arr[0];
    for (int a = 0; a < b; a++)
    {
        if (max < arr[a])
            max = arr[a];
    }
    min = arr[0];
    for (int a = 0; a < b; a++)
    {
        if (min > arr[a])
            min = arr[a];
    }
    printf("\n\n");
    printf("\t===== DISPLAY RESULT =====");
    printf("\n\n");
    printf("\tThe Largest Value is %d.",max);
    printf("\n\n");
    printf("\tThe Smallest Value is %d.",min);
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
}

Display the Ages Using One-Dimensional Array Using Ruby

A very simple program on how to demonstrate how to use a one-dimensional array using Ruby. 

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

# sample1.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : June 29, 2019  Saturday  10:33 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 "\tDisplay the Ages Using One-Dimensional Array";
puts "\n\n"
ages = [12,5,67,90,41,100,3,16,6,87]

puts("\n");
print("\t");
for a in ages
  print(" #{a} ")
end
    
print "\n\n";
print "\tEND OF PROGRAM";


One Dimensional Array Demonstration in C

In this article, I would like to show you how to declare and use one-dimensional array using C programming language. As a professional software engineer, one of the easiest data structure to be learned in a language is Arrays. They make so easy to solve common computer programming problems.

What the program will do is to list down all the values initialize in a variable using one-dimensional arrays. If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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


/*example_array.c
 Author   : Jake R. Pomperada,MAED-IT
 Tool     : Dev C++ Version 5.11
 Date     : November 29, 2018  Thursday 2:51 PM
*/
#include <stdio.h>
using namespace std;
int main()
{
int score[5] = {5,10,15,20,25};
int a=0;
printf("\n\n");
printf("\tOne Dimensional Array Demonstration");
printf("\n\n");
for(a=0; a<5; a++)
{
 printf("\t");
 printf("score[%d]  = %d\n ",a+1,score[a]);
}
 printf("\n\n");
 printf("\tEnd of Program");
 printf("\n\n");
}





Multi-Dimensional Arrays Program in C

In this article, I would like to share with you a sample program that I wrote during the time I am writing my book on the C programming language. This program will demonstrate how to declare and use multi-dimensional arrays using C programming language.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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


/*multi_dimensional.c
 Author   : Jake R. Pomperada,MAED-IT
 Tool     : Dev C++ Version 5.11
 Date     : December 1, 2018  Saturday 7:26 AM
*/
#include<stdio.h>
int main()
{
 int tables=0, rows=0, columns=0;
 int Employees[2][2][3] = { { {5,55,555}, {8, 88, 888} }, 
                             { {1978,1971,1941}, {1984,1991,1980} }
                           }; 
 printf("\n\n");
 printf("\t\tMulti-Dimensional Arrays in C");
 printf("\n\n");
 for (tables = 0; tables < 2; tables++)
 {
   for (rows = 0; rows < 2; rows++) 
  {
    for (columns =0; columns < 3; columns++)
   {
     printf("\tEmployees[%d][%d][%d] = %d\n", tables, rows, columns,
                                 Employees[tables][rows][columns]);
   }
  }
 }
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
}