Thursday, March 4, 2021

Years of Service in Python

Years of Service in Python

 I wrote this simple program that I called years of service in python to show how to use if else if statement. 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 at 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.




Program Listing


# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# February 23, 2021
# Bacolod City, Negros Occidental

print()
print("\tYEARS OF SERVICE IN PYTHON");
print()
years = int(input("Enter years of service: "))
office = str(input("Enter office: "))

if years >= 10:
if office.upper() == "IT":
print(f"Amount Given: 10000")
elif office.upper() == "ACCT":
print(f"Amount Given: 12000")
elif office.upper() == "HR":
print(f"Amount Given: 15000")
elif years < 10:
if office.upper() == "IT":
print(f"Amount Given: 5000")
elif office.upper() == "ACCT":
print(f"Amount Given: 6000")
elif office.upper() == "HR":
print(f"Amount Given: 7500")
print()
print("\tEND OF PROGRAM");
print()

Monday, March 1, 2021

Smallest and Biggest Element in an Array in C++

 I wrote this program to ask the user to give a series of elements in an array and then it will check what element has the smallest and biggest numerical values using C++ programming languages.

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 at 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.




Program Listing


// arrays.cpp

// Jake R. Pomperada, MAED-IT,MIT

// www.jakerpomperada.com

// www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental



#include<iostream>


int main ()

{

    int arr[20];

int n=0, i=0, max=0, min=0;

    std::cout <<"\n\n";

    std::cout <<"\tSmallest and Biggest Element in an Array in C++";

    std::cout <<"\n\n";

    std::cout << "\tGive the size of the array : ";

    std::cin >> n;

    std::cout <<"\n\n";

     for (i = 0; i < n; i++) {

   std::cout << "\tGive value in element no. " << i+1 << " : ";

       std::cin >> arr[i];

       }

    max = arr[0];

    for (i = 0; i < n; i++)

    {

        if (max < arr[i])

            max = arr[i];

    }

    min = arr[0];

    for (i = 0; i < n; i++)

    {

        if (min > arr[i])

            min = arr[i];

    }

    std::cout <<"\n\n";

    std::cout << "\tThe Biggest  Element : " << max;

    std::cout <<"\n\n";

    std::cout << "\tThe Smallest Element : " << min;

    std::cout <<"\n\n";

    std::cout <<"\tEnd of Program";

  }

Factorial in Python Using While Statement

 A simple program to ask the user to give a number and then the program will compute the factorial number of the given number using while statement in 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 at 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.




Program Listing


num = int(input("Enter an integer: "))
i = 1
sum = 1
while num >= i:
sum = sum * i
i = i + 1

print(f"Factorial is {sum}")

Sunday, February 28, 2021

Square and Cube a Number in Python

Square and Cube a Number in Python

 A simple program to display the square and cube a number 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 at 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.



Program Listing


i = 0
print(f"Number Squared Cube")

while i < 8:
i = i + 1
squared = i * i
cube = i * i * i
print(f"{i} {squared} {cube}")

Friday, February 26, 2021

Area of the Dining Table in C#

Area of the Dining Table in C#

 A simple program that I wrote to solve the area of the dining table using C# 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 at 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            double length, breadth, area;


            Console.WriteLine("\n");

            Console.Write("\tArea of the Dining Table in C# ");

            Console.WriteLine("\n");

            Console.Write("\tEnter length of Dining Table : ");

            length = Convert.ToDouble(Console.ReadLine());

            Console.WriteLine("\n");

            Console.Write("\tEnter breadth of Dining Table : ");

            breadth = Convert.ToDouble(Console.ReadLine());

            area = length * breadth;

            Console.WriteLine("\n");

            Console.WriteLine("\tArea of the Dining Tabe : " + area);

            Console.WriteLine("\n");

            Console.WriteLine("\tEnd of Program");

            Console.ReadKey();

        }

    }

}


Wednesday, February 24, 2021

Do You Want To Try Again in Python

Do You Want to Try Again in Python

 In this article I would like to share with you how to add two numbers and ask the user if the user would like to try again using while statement in 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 at 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.

dfdfdfdfdfdf22323232

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing



res = "y"

while res.lower() == "y":

# Store input numbers
num1 = int(input('Enter first number: '))
num2 = int(input('Enter second number: '))

# Add two numbers
sum = num1 + num2

# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
res = str(input("Do you want to try again? (Y/N) : "
""))
print();

Sum and Product of Two Numbers in C#

Sum and Product of Two Numbers in C# Using Console

 A simple program that I wrote to ask the user to give two numbers and then the program will compute the sum and product of two numbers using C# 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 at 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

Prorgam.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace Sum_and_Product_of_Two_Numbers

    


{

    class Program

    {

        public static int Sum(int num1, int num2)

        {

            int total;

            total = num1 + num2;

            return total;

        }


        public static int Product(int num1, int num2)

        {

            int multiply;

            multiply = num1 * num2;

            return multiply;

        }

        

        static void Main(string[] args)

        {

            Console.Write("\n\nSum and Product of Two Numbers in C# Using Console\n");

            Console.Write("--------------------------------------------------\n");

            Console.Write("\tEnter a number: ");

            int n1 = Convert.ToInt32(Console.ReadLine());

            Console.Write("\tEnter another number: ");

            int n2 = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("\n\tThe sum of {0}  and {1} is : {2} \n",n1,n2, Sum(n1, n2));

            Console.WriteLine("\n\tThe product of {0} and {1} is : {2} \n",n1,n2, Product(n1, n2));

            Console.WriteLine("\tEnd of Program");

            Console.WriteLine("\n");

            Console.ReadKey();

        }

    }

}



Body Mass Index in Python

Tuesday, February 23, 2021

Body Mass Index in Python

 In this article, I will share with you a program that I wrote to solve the body mass index 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 at 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing



# body_mass.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# February 22, 2021 1:59 PM Monday
# Bacolod City, Negros Occidental

print()
print("\tBody Mass Index in Python");
print()
# Define the constants
METER = 100

# Read the inputs from user
height = float(input("\tGive your height in Centimeters: "))
weight = float(input("\tGive your weight in Kilograms: "))

temp = height / METER
# Calculate the BMI
bmi = weight / (temp * temp)

# Display the result
print()
print("\tYour Body Mass Index is: ", "%d" % (bmi))
print()
print("\tEND OF PROGRAM");
print()

Monday, February 22, 2021

String Format in Python

String Format in Python

 In this article I will show you how to create and use string format in 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 at 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

# String format in Python
# Jake R. Pomperada,MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com

name = "Julianna Rae Pomperada"
food = "Pizza"
game = "Roblox"
age = "6"
text1 = "My name is {} I love {} and playing {}. I am {} years old"
info1 = text1.format(name,food,game, age)
print(info1)

Simple Weekly Payroll in Python

Simple Weekly Payroll in Python

 Create a Simple Weekly Payroll.

The program should accept the following inputs:
- Employee Name
- Number of hours rendered
- Rate per hour
- GSIS Premium Contribution
- PhilHealth Contribution
- Housing Loan
- Tax percentage rate (example input: 25, the program will treat it as 25%).

The program should compute the weekly gross salary, total deductions
and weekly net salary.


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 at 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing



# day1prac1.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# February 22, 2021 1:59 PM Monday
# Bacolod City, Negros Occidental

print()
print("\tSIMPLE WEEKLY PAYROLL");
print()
name = str(input("Employees Name : "))
hour = int(input("Number of hours rendered : "))
rate =
float(input("Rate per hour : "))
gsis =
float(input("GSIS Premium Contribution : "))
phil =
float(input("PhilHealth Contribution : "))
loan =
float(input("Housing Loan : "))
tax =
float(input("Tax Rate : "))

gross = hour * rate
deductions = (gross * (tax *
0.01)) + gsis + phil + loan
netsalary = gross - deductions

print();
print("\tDisplay Payroll Results");
print();
print("Gross Salary = {:5.2f}" .format(gross))
print("Total deductions = {:5.2f}" .format(deductions))
print();
print("Net Salary = {:5.2f}".format(netsalary) )
print();
print("\tEND OF PROGRAM");
print();