Ordinal Numbers in Python

 A simple program that I wrote to solve ordinal numbers 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.





Program Listing

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

def get_suffix(num):
if num in [10, 11, 12, 13]:
return "th"
else:
rem = num % 10
if rem == 1:
return "st"
elif rem == 2:
return "nd"
elif rem == 3:
return "rd"
else:
return "th"

print()
print("\tOrdinal Numbers in Python")
print()

for i in range(1, 11):
print(f"{i}{get_suffix(i)}")
print()
print("\tEnd of Program")
print()


Ordinal Numbers in Modern C++

 A simple program to demonstrate ordinal numbers using Modern C++ approach.

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.




Program Listing

// ordinal.cpp

// rules   :

//https://www.woodwardenglish.com/lesson/ordinal-numbers-in-english/

// standard: c++17

// IDE     : Code Blocks

// Jake Rodriguez Pomperada, MAED-IT, MIT

// www.jakepromperada.blogspot.com and www.jakerpomperada.com

// jakerpomperada@gmail.com


#include <iostream>

#include <string_view> 

//https://en.cppreference.com/w/cpp/string/basic_string_view


std::string_view get_suffix(int number)

{

     switch (number)

     {

         case 10:

         case 11:

         case 12:

         case 13: return "th";

         default:

         {

                 switch (number % 10)

                 {

                     case 1: return "st";

                     case 2: return "nd";

                     case 3: return "rd";

                     default: return "th";

                 }

         }

     }

}


int main()

{

      int num_years=0;


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

     std::cout << "\tOrdinal Numbers in Modern C++";

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

     std::cout << "\tHow many years: ";

     std::cin >> num_years;


     std::cout << "\n";

     for (int i = 1; i <= num_years; ++i)

         std::cout <<"\t" << i << get_suffix(i) << " year" << "\n";

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

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

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


}




Car Objects in Java

 Machine Problem

Create a class called Car. The Car class has the following fields:

1. Color

2. Model

3. Manufacturer

Instantiate 3 Car objects and display all their properties. Modify their defined properties and display their new properties.

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.




Program Listing

/*
 *   Cars_Model.java
 *   Prof. Jake R. Pomperada, MAED-IT, MIT
 *   www.jakerpomperada.blogspot.com and  www.jakerpomperada.com
 *   jakerpomperada@gmail.com
 *   Bacolod City, Negros Occidental Philippines
 *   
 * Machine Problem
 * 
 * Create a class called Car. The Car class has the following fields:
1. Color
2. Model
3. Manufacturer

Instantiate 3 Car objects and display all their properties.
Modify their defined properties and display their new properties.

 */

 class Cars_Model {

        public static void main(String[] args) {   
            
            System.out.println("\n");
            System.out.println("\tCar Objects in Java");
            System.out.println("\n");
            
            Car car1 = new Car();     
            car1.color = "Red";     
            car1.model = "CRV";  
            car1.manufacturer = "Honda";
            car1.getCarInfo();    
 
            Car car2 = new Car();     
            car2.color = "Blue";     
            car2.model = "Vios";   
            car2.manufacturer = "Toyota";
            car2.getCarInfo();   

            Car car3 = new Car();     
            car3.color = "White";     
            car3.model = "Accent";     
            car3.manufacturer = "Hyundai";
            car3.getCarInfo();   
            
            System.out.println("\n");
            System.out.println("\tEnd of Program");
            System.out.println("\n\n");
 }
}

 class Car{
     String color, model, manufacturer;
     
    
    void getCarInfo(){ 
        System.out.println("\t" + color + "  " + model + " " + manufacturer);
    }
 }



Finding the Largest Between Two Numbers in C#

 In this sample program that I wrote it will ask the user to give two numbers and then the program will check and determine which of the two given numbers has a largest value 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.




Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace Finding_Largest

{

    class Program

    {

        static void Main(string[] args)

        {

            int a;

            int b;

            int large;

            Console.WriteLine("\n");

            Console.WriteLine("\t================================================");

            Console.WriteLine("\tFinding the Largest Between Two Numbers in C#");

            Console.WriteLine("\t================================================");

            Console.WriteLine("\n");

            //input the numbers

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

            a = Convert.ToInt32(Console.ReadLine());

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

            b = Convert.ToInt32(Console.ReadLine());


            //finding largest number using if-else

            if (a > b)

                large = a;

            else

                large = b;


            Console.WriteLine("\n");

            Console.WriteLine("\tLargest number is {0}.", large);

            Console.WriteLine();

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

            Console.ReadLine();



        }

    }

}


My Favorite Fruits Using Arrays in Java

 A simple program to demonstrate how to use arrays in Java 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.





Program Listing

public class Fruits {

  public static void main(String[] args) {

    String[] MyFruits = {"Apple", "Orange", "Banana", "Grapes", "Mango"};

    System.out.println("\n");

    System.out.println("\tMy Favorite Fruits Using Arrays in Java");

        System.out.println();


    for (int a = 0; a < MyFruits.length; a++) {

                        System.out.print("\t");

      System.out.println(MyFruits[a]);

    }

    System.out.println();

    System.out.println("\tEnd of Program");

    System.out.println("\n");

}

}


Print 1 To 100 Using While Loop in C++

 A simple program to print 1 to 100 using while loop 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 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.




Program Listing

/* print.cpp

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

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

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental Philippines.

*/


#include <iostream>



int counter1=0;

int number=0, i=0; 

 

int main()

{

      

i=1;   

number = 100;

std::cout <<"\n";

std::cout <<"\t\tPrint 1 To 100 Using While Loop in C++";  

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

std::cout <<"\t";

while(i<=number)  

{  

     counter1++;

  

  std::cout << i <<" , ";

 

i=i+1;  

if(counter1 == 10){

           

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

        counter1 = 0;

    }

  }  

std::cout <<"\n";

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

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

}

Celsius To Fahrenheit in C#

 A simple program to ask the user to give temperature in Celsius and then convert it in Fahrenheit  equivalent.

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.





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace Celsius_Fahrenheit

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("\n");

            Console.WriteLine("\t============================================");

            Console.WriteLine("\t\tCelsius To Fahrenheit in C#");

            Console.WriteLine("\t=============================================");

            Console.WriteLine("\n");

            Console.Write("\tGive Temperature in Celsius : ");

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


            Console.WriteLine();

            Console.WriteLine("\tThe Fahrenheit = {0}", celsius * 18 / 10 + 32);

            Console.WriteLine();

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

            Console.ReadLine();


        }

    }

}


Area of a Circle in Pascal

 A simple program that I wrote using Pascal to compute the area of a circle. 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.

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.





Program Listing

Program Area_of_a_Circle;

Uses Crt, Math;

Var Area, Radius : Real;

Begin
   Clrscr;
   Writeln;
   Write('Area of a Circle in Pascal');
   Writeln;
   Writeln;
   Write('Give the radius of the circle :');
   Readln(radius);

   Area := PI * radius * radius;

   Writeln;
   Write('The value of the area is ',Area:5:2, '.');
   Writeln;
   Writeln;
   Write('End of Program');
   Writeln;
   Readln;
End.



Biggest of Three Numbers in C#

 Machine Problem

Write a C# program to find the largest of three 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 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.





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;



/*


Jake Rodriguez Pomperada, MAED-IT, MIT

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

jakerpomperada@gmail.com

Bacolod City, Negros Occidental


Machine Problem


Write a C# program to find the largest of three numbers.

 */

namespace Biggest_Three_Numbers

{

    class Program

    {

        static void Main(string[] args)

        {


            int num1=0, num2=0, num3=0;

            string result;


            Console.WriteLine("\n");

            Console.WriteLine("============================================");

            Console.WriteLine("\tBiggest of Three Numbers in C#");

            Console.WriteLine("=============================================");


            Console.WriteLine();

            Console.Write("Enter first number : ");

            num1 = Convert.ToInt32(Console.ReadLine());

            Console.Write("Enter the second number : ");

            num2 = Convert.ToInt32(Console.ReadLine());

            Console.Write("Enter the third number : ");

            num3 = Convert.ToInt32(Console.ReadLine());


            Console.WriteLine();


            if (num1 > num2 && num1 > num3)

            {

                result = "The " + num1  +  " Number is the greatest among three. \n";


            }

            else if (num2 > num1 && num2 > num3)

            {

                result = "The " + num2 + " Number is the greatest among three. \n";

            }

            else

            {

                result = "The " + num3 + " Number is the greatest among three. \n";

            }


            Console.WriteLine(result);

            Console.WriteLine();

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

            Console.ReadLine();



        }

    }

}


Simple Interest Rate in C#

 In this article I would like to share with you a sample program to compute the simple interest rate 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 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.





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace Simple_Interest

{

    class Program

    {

        static void Main(string[] args)

        {

            int year=0;

            double principal_amt=0.00, rate = 0.00, interest = 0.00, total_amt=0.00;

            Console.WriteLine("============================================");

            Console.WriteLine("\tSimple Interest Rate in C#");

            Console.WriteLine("=============================================");


            Console.WriteLine();

            Console.Write("Give The Loan Amount : ");

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

            Console.Write("Give The Number of Years : ");

            year = Convert.ToInt16(Console.ReadLine());

            Console.Write("Givet he Rate Of Interest : ");

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

            interest = (principal_amt * year * rate / 100);

            total_amt = principal_amt + interest;

            Console.WriteLine();

            Console.WriteLine("The Total Amount Be Paid : PHP {0}", total_amt);

            Console.WriteLine();

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

            Console.ReadLine();

        }

    }

}