Tuesday, January 10, 2023

Cube a Number in JavaScript

 A simple program to ask the user to give a number and then program will convert the given number into its cube a number using JavaScript 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

<html>

 

    <head>

 

              <title> Cube a Number in JavaScript </title>

 

            <Script type="text/javascript">

 

             var num_val=parseInt(prompt("Enter Number:"));

 

             var cube;

 

             var cube=num_val*num_val*num_val;

 

  document.write("<h1>Cube a Number in JavaScript </h1><br>");

             document.write("The given number " + num_val + "<br>");

             document.write("Cube of the given numbers is " + cube);

 

             </Script>

 

             </head>

 

</html>

Monday, January 9, 2023

Current Solver in TypeScript

Current Solver in TypeScript

 Machine Problem

Write a program that uses Ohm's law to find the current of the circuit with given resistance 10 ohms and the voltage of 120 volts 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

/* current.ts Jake Rodriguez Pomperada, MAED-IT, MIT www.jakerpomperada.com and www.jakerpomperada.blogspot.com jakerpomperada@gmail.com July 19, 2022 5:09 PM Tuesday Bacolod City, Negros Occidental */ var voltage = 120; var resistance = 10; // Solving for current in the circuit var current = voltage/resistance; // Two decimal places current = Math.floor(current*100)/100; console.log(); console.log("Current Solver in TypeScript\n"); console.log("Given Voltage : " + voltage + " volt(s)"); console.log("Given Resistance : " + current + " ohm(s)\n"); console.log("The Current : " + resistance + " ampere(s)\n"); console.log("End of Program\n");

Sunday, January 8, 2023

Cube Root A Number in C#

Cube Root a Number in C#

 A simple program to show how to convert a number into its cube root equivalent 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

using System; class CubeRoot { static void Main(string[] args) { double x = 64; double result = Math.Cbrt(x); Console.WriteLine("The Cube Root of " + x + " is " + result); } }

Find the Cube of a Number in C

Find the Cube of a Number in C

 A simple program that I wrote that will ask the user to give a number and then the program will compute the cube value of the given 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.

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 num_given=0, cube=0; printf("\n\n"); printf("\tFind the Cube of a Number in C\n\n"); printf("\tGive a Number : "); scanf("%d", &num_given); cube = num_given * num_given * num_given; printf("\n\n"); printf("\tThe Cube of %d is %d.\n\n", num_given, cube); printf("\tEnd of Program\n\n"); system("pause"); return 0; }

Saturday, January 7, 2023

Subtract Two Numbers in Rust

Subtract Two Numbers in Rust

 A simple program that I wrote using Rust programming language that will ask the user to give two numbers and then the program will subtract the difference of the two given numbers 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

/* diff.rs Author : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT Date : January 6, 2023 Friday 9:46 PM Address : #25-31 Victoria Malaga Street Eroreco Subdivision 6100 Bacolod City, Negros Occidental Philippines Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com Facebook : https://www.facebook.com/jakerpomperada YouTube Channel : http://www.youtube.com/jakepomperada Email : jakerpomperada@gmail.com Mobile Number : 09173084360 Telephone Number : (034) 433-5675 */ use std::io; use std::{i32}; fn main() { println!("\n"); println!("Subtract Two Numbers in Rust\n\n"); // User will give the first value. println!("Give First Value : "); let mut var1 = String::new(); io::stdin().read_line(&mut var1).expect("Unable to read entered data"); println!("\n"); // User will give the second value. println!("Give Second Value : "); let mut var2 = String::new(); io::stdin().read_line(&mut var2).expect("Unable to read entered data"); // Converting string to integer let a: i32 = var1.trim().parse().ok().expect("Program only processes numbers, Enter number"); let b: i32 = var2.trim().parse().ok().expect("Program only processes numbers, Enter number"); // Performing subtraction of two values variable a and variable b let subtract = a-b; // Output of basic operations println!("\n"); println!("The difference between {} and {} is {}.",a,b, subtract); println!("\n"); println!("End of Program"); println!("\n"); } // End of Code

Sorting of Strings Using Selection Sort in Java

Sorting of Strings Using Selection Sort in Java

A program that will sort an array of strings using selection sort algorithm 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.

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


class Main

{


// Selection Sort to Sort the given array of Strings


static void selectionSort(String arr_items[],int n)

{

   

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

    {

     

       

        int min_index = i;

        String minStr = arr_items[i];

        for(int j = i + 1; j < n; j++)

        {

             

            if(arr_items[j].compareTo(minStr) < 0)

            {

                

                minStr = arr_items[j];

                min_index = j;

            }

        }

 

   

    if(min_index != i)

    {

        String temp = arr_items[min_index];

        arr_items[min_index] = arr_items[i];

        arr_items[i] = temp;

    }

    }

}

 


public static void main(String args[])

{

    String arr[] = {"Zebra","Dog","Cobra","Lion","Bear","Tiger","Rabbit","Cat","Buffalo"};

    

    int n = arr.length;

    

        

    System.out.println();

    System.out.println("\tSorting of Strings Using Selection Sort in Java\n");

    System.out.println();

          

    // Printing the array before sorting

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

    {

        System.out.println(i+": "+arr[i]);

    }

    

    System.out.println();

 

    selectionSort(arr, n);

 

    System.out.println("After Sorting of Strings\n");

     

    // Printing the array after sorting

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

    {

        System.out.println(i+": "+arr[i]);

    }

}

}

Thursday, January 5, 2023

Inches To Feet in Java

Inches To Feet in Java

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

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

import java.util.*;


public class Main

{

    

 static Scanner console=new Scanner(System.in);

public static void main(String[] args) {

        double inches;

        double result;


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

        System.out.print("\tGive Inches Value : ");

        inches=console.nextDouble();

        result=inches/12;

    

        System.out.println();    

        System.out.println("\t" + inches + " Inche(s) is equal to " + result + " Feet(s).");

}

}