Wednesday, October 5, 2022

Feet To Centimeter in TypeScript

 Machine Problem

Write a program that will convert the given feet value of 3.5 feet into centimeter equivalent 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 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.

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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

/* feet_cm.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 13, 2022 2:40 PM  Wednesday
   Bacolod City, Negros Occidental
*/

var  feet  = 3.5;

// Converting to Centimeter

let cm = feet * 30.48;

let two_decimal = cm.toFixed(2);

console.log();
console.log("Feet To Centimeter in TypeScript\n");
console.log(feet + " feet(s) the centimeter equvalent is " + two_decimal + " centimeter(s).\n");
console.log("End of Program\n");

Tuesday, October 4, 2022

Reverse a Number in C#

Reverse a Number in C#

 A simple program to ask the user to give a  number and then the program will reverse the arrangement of the given number 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.

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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace Reverse_Number

{

    class Program

    {

        static void Main(string[] args)

        {


            Console.WriteLine("\n");

            Console.WriteLine("\tReverse a Number in C#");

            Console.WriteLine("\n");

            Console.Write("\tGive a Number : ");

            int given_number = int.Parse(Console.ReadLine());

            int Reverse = 0;

            while (given_number > 0)

            {

                int remainder = given_number % 10;

                Reverse = (Reverse * 10) + remainder;

                given_number = given_number / 10;

            }

            Console.WriteLine("\n");

            Console.WriteLine("\tThe reverse number is {0}.", Reverse);

            Console.WriteLine("\n");

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

            Console.WriteLine("\n");

            Console.ReadLine();  

        }

    }

}


Bigger Between Two Numbers Using Pointers in C

Bigger Between Two Numbers Using Pointers in C

Machine Problem

Design a program that will ask the user to give two numbers and then the program will  check and determine which of the two number is much bigger in terms of value using pointers 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.

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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

#include <stdio.h>


int main()

{

    int a=0,b=0;

    int *c,*d;

    printf("\n\n");

    printf("\tBigger Between Two Numbers Using Pointers in C");

    printf("\n\n");

    printf("\tGive Two Numbers : ");

    scanf("%d%d", &a,&b);

     

     c = &a;

     d = &b;

     

if (*c > *d) {

printf("\n\n");

printf("\t%d is much bigger than %d.",a,b);

   }

else {

printf("\n\n");

printf("\t%d is much bigger than %d.",b,a);

}

    printf("\n\n");

    printf("\tEnd of Program");

    printf("\n\n");   

}


Monday, October 3, 2022

Biggest and Smallest Number in an Array Using Pointers in C++

Biggest and Smallest Number in an Array Using Pointers in C++

 A program to check the biggest and smallest list of numbers given by the users using arrays 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.

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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing


#include <iostream>


using namespace std;


int findMinimum(int a[], int n)

{

    int smallest = a[0];


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

    {

        smallest = min(smallest, a[i]);

    }

    return smallest;

}


int findMaximum(int a[], int n)

{

    int biggest = a[0];


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

    {

        biggest = max(biggest, a[i]);

    }

    return biggest;

}


int main()

{

    int n=0,i=0;

    

    cout <<"\n\n";

    cout <<"\tBiggest and Smallest Number in an Array Using Pointers in C++";

    cout <<"\n\n";

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

    cin >> n;

    

    

    int *pointer = &n;

    int arr[n];

    cout <<"\n\n";

    cout << "\tInput the " << *pointer << " elements of the array: \n\n";

    for (i = 0; i < *pointer; i++)

    {

        cin >> arr[i];

    }


cout <<"\n\n";

    cout << "\tThe " << *pointer << " elements of the array are :  \n\n";

    for (i = 0; i < *pointer; i++)

    {

        cout << arr[i] << "  ";

    }


   int smallest = findMinimum(arr, *pointer);

   int biggest = findMaximum(arr, *pointer);


cout <<"\n\n";

    cout << "\tThe Smallest element is: " << smallest <<"\n\n";

    cout << "\tThe Biggest element is: " << biggest <<"\n\n";;

    cout <<"\n\n";

}


Sunday, October 2, 2022

Ordinal Numbers in Java

Ordinal Numbers in Java

 A simple program to display the ordinal value of the given numbers starting from 1 to 15 using 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.

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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

Ordinal_Numbers .java

public class Ordinal_Numbers {
public static String ordinal_num(int given_value) {
int hundredRem = given_value % 100;
int tenRem = given_value % 10;
if (hundredRem - tenRem == 10) {
return "th";
}
switch (tenRem) {
case 1:
return "st";
case 2:
return "nd";
case 3:
return "rd";
default:
return "th";
}
}

public static void main(String[] args) {
// TODO Auto-generated method stub
         
System.out.print("\n\n");
System.out.print("\tOrdinal Numbers in Java");
System.out.print("\n\n");
for (int a = 1; a <= 15; a++) {
String st = Ordinal_Numbers.ordinal_num(a);
System.out.println("\t" + a + " = " + a + st);
}
System.out.print("\n");
System.out.print("\tEnd of Program");
System.out.print("\n\n");
}

}


Reverse a String Using a Function in Python

Reverse a String Using a Function in Python

 A program that will reverse the given string and convert it into upper case format and count the number of characters 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.

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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

def reverse_string(word):
return word[::-1]

string = input("Enter a string: ")
print(string)
print(reverse_string(string.upper()))
print("String count: ", len(string))

Hello World in Fortran

Hello World in Fortran

 A simple program to display hello world using fortran 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.

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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

hello.f

                                                                             
      PROGRAM MAIN
      PRINT *, 'HELLO WORLD IN FORTRAN'
      STOP
      END


How To Write and Run a Fortran Program in Linux

How To Declare a Function in Python