Tuesday, April 23, 2019

Basic Calculator in Python

A simple calculator program that will display a menu which contains
four basic mathematics operators like addition, subtraction, multiplication and
division. The user selects an operator from the menu and then provide value and 
the program will perform the computation based on the operator selected by the 
user and display the result on the screen using Python 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

# Rollyn M. Moises and Jake R. Pomperada
# calculator.py
# February 6, 2019  Wednesday
# Bacolod City, Negros Occidental
print();
print("\tBASIC CALCULATOR");
print();
print("\t+.......Addition");
print("\t-.......Subtration");
print("\tx.......Multiplication");
print("\t/.......Division");
print();
ch=input("\tSelect Your Choice : ")
print();
a=int(input("\tEnter Value No. 1 : "))
b=int(input("\tEnter Value No. 2 : "))
print();
if(ch=="+"):
    sum=a+b;
    print("\tThe sum of {0} and {1} is {2}.".format(a, b,sum));
elif(ch=="-"):
    sub=a-b;
    print("\tThe difference between {0} and {1} is {2}.".format(a, b,sub));
elif(ch=="x"):
    multiply=a*b;
    print("\tThe product of {0} and {1} is {2}.".format(a, b,multiply));
elif(ch=="/"):
    quotient=a/b;
    print("\tThe quotient of {0} and {1} is {2}.".format(a, b,quotient));
else:
    print("\tInvalid Operator. Try Again")
print();
print("\tEND OF PROGRAM");

Salary Range Checker Using Python

 A program that will ask the user its salary and the program will determine the user salary range using if..elif statement using Python 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

# Rollyn M. Moises and Jake R. Pomperada
# largest.py
# February 6, 2019  Wednesday
# Bacolod City, Negros Occidental
print();
print("\tSalary Range Checker ");
print();
salary = int(input("\tEnter First  Value : "));
print();
if (salary <=0) :
    print("\tYour salary ranges is very small. Try Again");
elif (salary >= 1 and salary <= 999)  :
    print("\tYour salary ranges from PHP 1 to PHP 999.");
elif (salary >= 1000 and salary <= 5999) :
    print("\tYour salary ranges from PHP 1,000 to PHP 5,9999.");
elif (salary >= 6000 and salary <= 10999) :
print("\tYour salary ranges from PHP 6,000 to PHP 10,999.");
elif (salary >= 11000 and salary <= 15999):
print("\tYour salary ranges from PHP 11,000 to PHP 15999.");
elif (salary >= 16000 and salary <= 20000) :
print("\tYour salary ranges from PHP 16,000 to PHP 20,000.");
else :
    print("\tYour is above P20,000 and beyond.");
print();
print("\tEND OF PROGRAM");


Find the Day of the Week Using Python

A program that will ask the user to print day name of the week using if elif statement using Python 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

# Rollyn M. Moises and Jake R. Pomperada
# largest.py
# February 6, 2019  Wednesday
# Bacolod City, Negros Occidental
print();
print("\tFind the Day of the Week ");
print();
week = int(input("\tEnter Week Number (1-7) : "));
print();
if (week == 1) :
    print("\tThe day is MONDAY.")
elif (week == 2) :
    print("\tThe day is TUESDAY.")
elif (week == 3) :
    print("\tThe day is WEDNESDAY.")
elif (week == 4) :
    print("\tThe day is THURSDAY.")
elif (week == 5) :
    print("\tThe day is FRIDAY.")
elif (week == 6) :
    print("\tThe day is SATURDAY.")
elif (week == 7) :
    print("\tThe day is SUNDAY.")
else :
    print();
    print("\tInvalid Input! Please enter week in between 1-7.");
print();
print("\tEND OF PROGRAM");

Find Largest of Three Numbers Using Python

A program that will ask the user to give three numbers and then the program will find the largest of three numbers using elif statement using Python 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

# Rollyn M. Moises and Jake R. Pomperada
# largest.py
# February 6, 2019  Wednesday
# Bacolod City, Negros Occidental
print();
print("\t Find Largest of Three Numbers ");
print();
a = int(input("\tEnter First  Value : "));
b = int(input("\tEnter Second Value : "));
c = int(input("\tEnter Third Value : "));
print();
if (a > b and a > c):
          print("\t{0} is Greater Than both {1} and {2}.". format(a, b, c))
elif (b > a and b > c):
          print("\t{0} is Greater Than both {1} and {2}.". format(b, a, c))
elif (c > a and c > b):
          print("\t{0} is Greater Than both {1} and {2}.". format(c, a, b))
else:
          print("Either any two values or all the three values are equal.")
print();
print("\tEND OF PROGRAM");



Find the Largest Number in a List Using Python

 A program that will ask the user how many elements to be processed and
then the program will accept a series of values and the program will find out
which of the given number has the biggest numerical value and display the result
on the screen using Python 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

# Rollyn M. Moises and Jake R. Pomperada
# largest.py
# February 21, 2019  Thurday
# Bacolod City, Negros Occidental
print();
print("\tFind the Largest Number in a List");
print();
value = int(input("\tHow many element? : "));
print();
print("\t===== DISPLAY RESULT =====");
print();
a=[]
for i in range(1,value+1):
    b=int(input("\tEnter element value item no. %d: " %(i)))
    a.append(b)
a.sort()
print();
print("\tThe largest element value is %d." %a[value-1])
print();
print("\tEnd of Program");
print();


Find the Smallest Divisor of an Integer Using Python

A program to ask the user a number and then the program will find the smallest divisor and display the result on the screen using Python.

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

# Rollyn M. Moises and Jake R. Pomperada
# smallest_divisor.py
# February 21, 2019  Thurday
# Bacolod City, Negros Occidental
print();
print("\tFind the Smallest Divisor of an Integer");
print();
value = int(input("\tGive a Number : "));
print();
print("\t===== DISPLAY RESULT =====");
print();
a=[]
for i in range(2,value+1):
    if (value%i==0):
        a.append(i)
a.sort()
print("\tThe Smallest Divisor is %d." %a[0])
print();
print("\tEnd of Program");

print();

List of Planets in our Solar System Using Python

A program to list down all the planets of our solar system using for loop statement using Python 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


# Rollyn M. Moises and Jake R. Pomperada
# planets.py
# February 21, 2019  Thurday
# Bacolod City, Negros Occidental
print();
print("\tList of Planets in our Solar System");
planets = ['Mercury','Venus','Earth', 'Mars','Jupiter','Saturn', 'Uranus','Neptune']
print();
print("\t===== DISPLAY LIST OF PLANETS =====");
print();
index =1;
for index, value in enumerate(planets):
    print("\tPlanet No.%d :  %s" %(index+1, value.upper()))
print();
print("\tEnd of Program");
print();

Summation Value of a Number Using Python

A basic program that I wrote in Python that will perform summation of values.

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

print("\tSummation Value of a Number");
print();
value = int(input("\tGive a Number : "));
print();
print("\t===== DISPLAY RESULT =====");
print();
sum = 0
for i in range(1, value + 1):
    sum += i
print("\tThe summation value of %d is %d." %(value,sum));
print();
print("\tEnd of Program");
print();

Factorial Solver Using For Loop Statement in Python

A simple program to show how to use for loop statement in Python to solve factorial values.

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

print()
print("\tFactorial Solver Using For Loop Statement")
print()
factorial = 1
num = int(input("\tGive a Number : "))
for i in range(1, num + 1):
    factorial = (factorial* i)
print()
print("\tThe factorial value of ", num, " is ", factorial,'.')
print()
print("\tEND OF PROGRAM");


Thursday, April 18, 2019

Shell Sort in C

Here is a program will sort the series of a number using shell sort algorithm using C 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

/* shell_sort.c
   Author   : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
   Tool     : Dev C++ 5.11
   Date     : April 18, 2019  Thursday   10:53 AM
   Website  : www.jakerpomperada.com
   Email    : jake_pomperada@tup.edu.ph and jakerpomperada@gmail.com
   Location : Bacolod City, Negros Occidental
*/

#include <stdio.h>
#include <stdlib.h>

void shellsort(int arr[], int num);

int main()
{
 int items[1000], num=0,min=0,loc=0;
 int c=0, b=0,change=0,j=0,temp=0;
 system("cls");
 printf("\n\n");
 printf("\tShell Sort Program in C");
 printf("\n\n");
 printf("\tHow many items? : ");
 scanf("%d", &num);
 printf("\n\n");
 for (c= 0; c < num; c++) {
    printf("\tEnter item no. %d: ", c+1);
    scanf("%d", &items[c]);
 }
printf("\n\n");
printf("\tOriginal Arrangement of Numbers");
printf("\n\n");
 for ( c = 0 ; c < num ; c++ ) {
   printf("\t%d ",items[c]);
 }
 shellsort(items, num);
 printf("\n\n");
 printf("\tAsceding Order of Numbers");
 printf("\n\n");
 for ( c = 0 ; c < num ; c++ ) {
 printf("\t%d ", items[c]);
 }  
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
system("pause");
}

void shellsort(int arr[], int num)
{
    int i, j, k, tmp;
    for (i = num / 2; i > 0; i = i / 2)
    {
        for (j = i; j < num; j++)
        {
            for(k = j - i; k >= 0; k = k - i)
            {
                if (arr[k+i] >= arr[k])
                    break;
                else
                {
                    tmp = arr[k];
                    arr[k] = arr[k+i];
                    arr[k+i] = tmp;
                }
            }
        }
    }
}



Bucket Sort in C

Here is a program that I wrote to ask the user to give a series of numbers and then the program will sort the series of a number using bucket sort algorithm using C 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

/* bucket_sort.c
   Author   : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
   Tool     : Dev C++ 5.11
   Date     : April 18, 2019  Thursday   12:56 AM
   Website  : www.jakerpomperada.com
   Email    : jake_pomperada@tup.edu.ph and jakerpomperada@gmail.com
   Location : Bacolod City, Negros Occidental
*/

#include <stdio.h>
#include <stdlib.h>

struct bucket 
{
    int count;
    int* value;
};

int compareIntegers(const void* first, const void* second)
{
    int x = *((int*)first), y =  *((int*)second);
    if (x == y)
    {
        return 0;
    }
    else if (x < y)
    {
        return -1;
    }
    else
    {
        return 1;
    }
}

void bucket_sort(int array[],int n)
{
    struct bucket buckets[3];
    int i, j, k;
    for (i = 0; i < 3; i++)
    {
        buckets[i].count = 0;
        buckets[i].value = (int*)malloc(sizeof(int) * n);
    }
    
    for (i = 0; i < n; i++)
    {
        if (array[i] < 0)
        {
            buckets[0].value[buckets[0].count++] = array[i];
        }
        else if (array[i] > 10)
        {
            buckets[2].value[buckets[2].count++] = array[i];
        }
        else
        {
            buckets[1].value[buckets[1].count++] = array[i];
        }
    }
    for (k = 0, i = 0; i < 3; i++)
    {
        qsort(buckets[i].value, buckets[i].count, sizeof(int), &compareIntegers);
        for (j = 0; j < buckets[i].count; j++)
        {
            array[k + j] = buckets[i].value[j];
        }
        k += buckets[i].count;
        free(buckets[i].value);
    }
}



int main()
{
 int items[1000], num=0,min=0,loc=0;
 int c=0, b=0,change=0,j=0,temp=0;
 system("cls");
 printf("\n\n");
 printf("\tBucket Sort Program in C");
 printf("\n\n");
 printf("\tHow many items? : ");
 scanf("%d", &num);
 printf("\n\n");
 for (c= 0; c < num; c++) {
    printf("\tEnter item no. %d: ", c+1);
    scanf("%d", &items[c]);
 }
printf("\n\n");
printf("\tOriginal Arrangement of Numbers");
printf("\n\n");
 for ( c = 0 ; c < num ; c++ ) {
   printf("\t%d ",items[c]);
 }
  bucket_sort(items,num);

 printf("\n\n");
 printf("\tAsceding Order of Numbers");
 printf("\n\n");
 for ( c = 0 ; c < num ; c++ ) {
 printf("\t%d ", items[c]);
 }  
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
system("pause");
}