Tuesday, March 15, 2022

Employee's Payroll in Python

 Machine Problem


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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.



Program Listing

# employees_payroll.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# March 15, 2022 Tuesday 3:54 PM
# Bacolod City, Negros Occidental

print()
print("\tEmployee's Payroll in Python");
print()
emp_name = str(input("\tEmployees Name : "))
office = str(input("\tOffice [IT, ACCOUNTING, HR] : "))
years_service = float(input("\tNo. of years in service : "))

if (office.lower() == 'it') and (years_service >=10):
salary = 10000
elif (office.lower() == 'it') and (years_service < 10):
salary = 5000
elif (office.lower() == 'accounting') and (years_service >=10):
salary = 12000
elif (office.lower() == 'accounting') and (years_service < 10):
salary = 6000
elif (office.lower() == 'hr') and (years_service >=10):
salary = 15000
else:
salary = 7500

print()
print("\tName : " + emp_name)
print("\tOffice : " + office.upper())
print("\tYears of Service : " + str(years_service))
print("\tSalary : " + str(salary))
print();
print("\tEND OF PROGRAM");
print();

Vowels and Consonants in Python

Vowels and Consonants in Python

 A program that will ask the user to give a string and then the program will count the number of vowels and consonants from the in the given string 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing


# vowels_consonants.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

print()
print("\tVowels and Consonants in Python");
print()
str=input("\tGive a String : ");
vowels=0
consonants=0

for i in str.lower():
if(i == 'a'or i == 'e'or i == 'i'or i == 'o'or i == 'u'):
vowels=vowels+1;
else:
consonants=consonants+1;

print()
print("\tThe number of vowels:",vowels);
print("\tThe number of consonants:",consonants);
print()
print("\tEnd of Program")
print()

Monday, March 14, 2022

Area of Rectangle in C#

Area of Rectangle in C#

 A program to compute the area of rectangle of 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


 /*         Area of Rectangle in  C#

            * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

            * Tool   : C#

            * www.jakerpomperada.blogspot.com and www.jakerpomperada.com

            * jakerpomperada@gmail.com

            * Bacolod City, Negros Occidental

            *

  */


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

          

            Console.WriteLine();

            Console.WriteLine("\tArea of Rectangle in C#\n");

            Console.WriteLine();

            Console.Write("\tGive the Length Value  : ");

            int length_value = Int32.Parse(Console.ReadLine());

           

            Console.Write("\tGive the Width Value : ");

            int width_value = Int32.Parse(Console.ReadLine());


            double solve_area;

            solve_area = (length_value * width_value);


            Console.WriteLine("\n");

            Console.WriteLine("\tThe Result : " + solve_area);

            Console.WriteLine();

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

            Console.ReadKey();

        }

    }

}


Area of Square in C#

Area of Square in C#

 A simple program that I wrote using C# programming language to solve the area of square.

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.






Program Listing

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

 /*         Area of Square in  C#
            * Author : Jake Rodriguez Pomperada, MAED-IT, MIT
            * Tool   : C#
            * www.jakerpomperada.blogspot.com and www.jakerpomperada.com
            * jakerpomperada@gmail.com
            * Bacolod City, Negros Occidental
            *
  */

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
          
            Console.WriteLine();
            Console.WriteLine("\tArea of Square in C#\n");
            Console.WriteLine();
            Console.Write("\tGive the Side Value  : ");
            int side = Int32.Parse(Console.ReadLine());
           
            double solve_area;
            solve_area = (side * side);

            Console.WriteLine("\n");
            Console.WriteLine("\tThe Result : " + solve_area);
            Console.WriteLine();
            Console.Write("\tEnd of Program");
            Console.ReadKey();
        }
    }
}

Area of Triangle in C#

Area of Triangle in C#

 A simple program to solve the area of the triangle. I hope you like my work guys.

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.




Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


 /*         Area of the Triangle in  C#

            * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

            * Tool   : C#

            * www.jakerpomperada.blogspot.com and www.jakerpomperada.com

            * jakerpomperada@gmail.com

            * Bacolod City, Negros Occidental

            *

  */


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

          

            Console.WriteLine();

            Console.WriteLine("\tArea of the Triangle in C#\n");

            Console.WriteLine();

            Console.Write("\tGive the Base Value  : ");

            int base_value = Int32.Parse(Console.ReadLine());

           

            Console.Write("\tGive the Height Value : ");

            int height_value = Int32.Parse(Console.ReadLine());


            double solve_area;

            solve_area = (base_value * height_value) / 2;


            Console.WriteLine("\n");

            Console.WriteLine("\tThe Result : " + solve_area);

            Console.WriteLine();

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

            Console.ReadKey();

        }

    }

}


Sunday, March 13, 2022

Odd and Even Numbers Using Functions in C++

Odd and Even Numbers Using Functions in C++

 A simple program that will ask the user how many items to process and then it will accept a series of an integer numbers and then our program will list down the even and odd numbers using functions in 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

// Written By: Mr. Jake R. Pomperada, MAED-IT

// Date : November 21, 2010 Sunday

// Tool : C++



#include <iostream>


using namespace std;


// Global Variables


int a=0,r=0,data=0,b=0;

int values[10];



void get_data();

void display_even();

void display_odd();



void get_data(void)

{

     cout << "\tOdd and Even Numbers Using Functions in C++";

     cout << "\n\n";

     cout << "How Many Numbers : ";

     cin >> data;

     cout << "\n";

        for (b=1; b <= data; b++)

            {

            cout << "Enter Item No. "

                  << b <<  " :";

            cin >> b[values];

          }

}



void display_even(void)

{


    cout << "\n\n";

    cout << "List of Even Numbers : ";

    cout << "\n\n";

        for (a=1; a<=data; a++) {

            r = a[values] % 2;

            if (r ==0) {

                cout << " " <<a[values]

                << " ";

         }


     }

}



void display_odd(void)

 {

    cout << "\n\n";

    cout << "List of Odd Numbers : ";

      cout << "\n\n";

     for (a=1; a<=data; a++) {

         r = a[values] % 2;

         if (r !=0) {

          cout << " " <<a[values]

            << " ";

         }

     }

 }

 main() {


     get_data();

     display_even();

     display_odd();

     cout << "\n\n";

     system("pause");

 }



Addition, and Difference of Two Numbers in Scala

Addition, and Difference of Two Numbers in Scala

 Machine Problem

Write a program that will ask the user to give two numbers, and then the program will compute, and display the sum and difference of the two numbers 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

/* addition_difference.scala

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

   www.jakerpomperada.blogspot.com and www.jakerpomperada.com

   jakerpomperada@gmail.com

   October 31, 2021    Sunday  3:18 PM

   Bacolod City, Negros Occidental

 */


import java.util.Scanner;


object addition_difference {

def main(args: Array[String]) : Unit = {

    var scanner = new Scanner(System.in);

        print("\n\n");

    print("\tAddition, and Difference  of Two Numbers in Scala");

        print("\n\n");   

print("\tEnter the first number : ");

    var a = scanner.nextInt();

print("\n");

print("\tEnter the second number : ");

var b = scanner.nextInt();


        var addition = (a+b);

        var difference = (a-b);

print("\n");

println("\tThe sum of " + a + " and " + b + " is " + addition +".");

        print("\n");

        println("\tThe difference between " + a + " and " + b + " is " + difference +".");

        print("\n");

        print("\tEnd of Program");

        print("\n\n");

}

}

Product of Two Numbers in Scala

Product of Two Numbers in Scala

 Machine Problem

Write a program that will ask the user to give two numbers, and then the program will compute, and display the product of the two numbers 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.




Program Listing

/* product.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   October 31, 2021    Sunday  2:28 PM
   Bacolod City, Negros Occidental
 */

import java.util.Scanner;

object product {
   
    def main(args: Array[String]) : Unit = {
   
        var scanner = new Scanner(System.in);
   
        print("\n\n");
        print("\tProduct of Two Numbers in Scala");
        print("\n\n");  
        print("\tEnter the first number : ");
        var a = scanner.nextInt();
       
        print("\n");
        print("\tEnter the second number : ");
        var b = scanner.nextInt();

        var product = (a*b);
       
        print("\n");
        println("\tThe product of " + a + " and " + b + " is " + product +".");
        print("\n");
        print("\tEnd of Program");
        print("\n\n");
       
    }
}

Saturday, March 12, 2022

Feet To Centimeter Converter in Python

Feet To Centimeter Converter in Python

 A simple program to ask the user to give value in feet and then the program will convert the given feet into centimeter equivalent 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

feet_centimeter.py

print();
print("Feet To Centimeter Converter in Python");
print();
feet = input("How many feet(s) : ")
value = float(feet)

def find_centimeters(value):
return float(value)* 30.48

print();

get_result = find_centimeters(value)
final_result = int((get_result * 100) + 0.5) /100.0

print("The equivalent value of ", value, " feet(s) in centimeters is "
,final_result,' centimeter(s).')
print();
print("End of Program")
print();

Friday, March 11, 2022

String Palindrome in Scala

String Palindrome in Scala

 Machine Problem

Write a program to ask the users to give a string and then the program will check and determine whether the given string is a palindrome or not 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.




Program Listing

/* string_palindrome.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   March 6, 2022   2:44 PM    Sunday
   Bacolod City, Negros Occidental
 */


import java.util.Scanner;

object string_palindrome {

  def string_palindrome_check(s : String ) : Boolean = {
      val sletters = s.toLowerCase.filter(c => c.isLetter)
      (sletters == sletters.reverse)
  }

  def main(args: Array[String]) : Unit = {

    var input = new Scanner(System.in);

    var display_result = " ";

    print("\n");
    print("\tString Palindrome Using Scala");
    print("\n\n");
    print("\tGive a String :  ");
    var str_given = input.nextLine();

    if (string_palindrome_check(str_given))
        {
         display_result = "\tThe given string " + str_given + " is a Palindrome."
        } else {
            display_result = "\tThe given string " + str_given + " is Not a Palindrome."
        }
   
    print("\n");
    print(display_result);
    print("\n\n");
    print("\tEND OF PROGRAM");
    print("\n\n");
  }
}

Vowels and Consonants in Scala

Count Vowels and Consonants Using Scala

 Machine Problem

Write a program to ask the users to give a string or a sentence then the program will count the number of vowels, and consonants 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

Problem No. 7

Write a program to ask the users to give a string or a sentence
then the program will count the number of vowels, and consonants
and display the results on the screen.

Solution

/* vowels_consonants.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   March 9, 2022  3:12 PM    Wednesday
   Bacolod City, Negros Occidental
 */

import java.util.Scanner;

object vowels_consonants {


   def main(args: Array[String]) : Unit = {

    var input = new Scanner(System.in);

   var vowels = 0; var consonants = 0;
  
   var a = 0;

    print("\n");
    print("\tCount Vowels and Consonants Using Scala");
    print("\n\n");
    print("\tGive a String or a Sentence :  ");
    var line = input.nextLine();

    line = line.toLowerCase();
    
    while (a < line.length) 
    {
      var ch = line.charAt(a);

      // check if character is any of a, e, i, o, u
      if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') {
        vowels=vowels+1;
      }

      // check if character is in between a to z
      else if ((ch >= 'a' && ch <= 'z')) {
        consonants=consonants+1;
      }
      
    a=a+1;
    }
    print("\n")
    print("\t===== DISPLAY RESULTS ====\n\n");
    printf("\tNumber of Vowels     : %d \n" ,vowels);
    printf("\tNumber of Consonants : %d " ,consonants);
    print("\n\n");
    print("\tEND OF PROGRAM");
    print("\n\n");
  }
  
 
  }

How To Add Hashtag in Your Video Title in YouTube

How To Create an Object in C++

How To Create an Object in C++

 A simple program to demonstrate how to create and use objects in 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.






Program Listing

#include <iostream>

 using namespace std;

class Person {       // The class
  public:             // Access specifier
    int age;        // Attribute (int variable)
    string persons_name;  // Attribute (string variable)
    string address;  // Attribute (string variable)
};

int main() {
  Person Male; // Create an Object

  cout << "\n\n";
  cout << "How To Create an Object in C++";
  cout << "\n\n";
  // Access attributes and set values
  Male.age = 43;
  Male.persons_name = "John Dela Cruz";
  Male.address = "Silay City, Negros Occidental";
  
  // Print attribute values
  cout << "Persons Name    : " << Male.persons_name << "\n";
  cout << "Persons Age     : " << Male.age << " years old. \n";
  cout << "Persons Address : " << Male.address << "\n";
  return 0;
}