How To Run JavaScript Code in Node.JS

 A simple program to add the sum of two numbers using JavaScript and run on Node.JS.

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

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


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


var a = 5;  var b = 6;  

var sum =0;

var sum = (a+b);

console.log("The sum of " + a + " and " + b + " is " + sum + ".");



Swap Two Numbers Using JOptionaPane in Java

A simple program that I wrote that will ask the user to give two numbers and then the program will swap the arrangement of two numbers using JOptionPane 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

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


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

package demo;

import javax.swing.JOptionPane;

public class Activity_No_One {

public static void main(String[] args) {
// TODO Auto-generated method stub
// obtain user input from JOptionPane input dialogs

      String one = 

         JOptionPane.showInputDialog( "Enter first integer" );

      String two =

          JOptionPane.showInputDialog( "Enter second integer" );
      
      // convert String inputs to int values for use in a calculation

      int a = Integer.parseInt(one); 

      int b = Integer.parseInt(two);
      
      int temp=0;

      
      // display result in a JOptionPane message dialog

      JOptionPane.showMessageDialog( null,  "Value No. 1 : " + a + "\n" 
      + "Value No. 2 : " + b, "Before Swapping", JOptionPane.INFORMATION_MESSAGE );
      
      /*swapping */  
       temp = a;  
       a = b;  
       b = temp;  
       
       
       JOptionPane.showMessageDialog( null,  "Value No. 1 : " + a + "\n" 
          + "Value No. 2 :  " + b, "After Swapping", JOptionPane.INFORMATION_MESSAGE );

}

}

Fever Checker in TypeScript

 Machine Problem

Write a program that will check if the given patients temperature of 41 degrees Celsius and would display on screen if he/she has fever depending whether his/her temperature exceeds 39 degrees Celsius. If it is less than that, then the patient has normal temperature. Using if-else statement.

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

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


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


/* fever_checker.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 21, 2022    8:52 PM    Thursday
   Bacolod City, Negros Occidental
*/

var body_temp : number = 38;
var result_one : string = "";
var result_two : string = "";

// It the patients body temperature less than (<) 39
// degrees celsius then the patient does not a fever.

if (body_temp < 39) {
  result_one = "The patient's body temperature of " +body_temp + " degrees Celsius.\n";
  result_two = "You don't have a fever!\n";
} else
// It the patients body temperature greater than or equal (>=)
// degrees celsius then the patient does not a fever.
{
result_one = "The patient's body temperature of " +body_temp + " degrees Celsius.\n";
result_two = "You have a fever!\n";
}

console.log();
console.log("\tFever Checker in TypeScript\n");
console.log(result_one);
console.log(result_two);
console.log("\tEnd of Program\n");


Numerical Table in C

 A simple program that I wrote to generate numerical 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.

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

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


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



/*
Write a program that displays the following table using C language

p       p*5  p*10

5       25     50

10     50     100

25     125   250

50    250   500


*/

#include <stdio.h>

int main()
{
   int p[4] = {5,10,25,50};
   int a=0;
   
    printf("\n\n");
    printf("Numerical Table in C\n\n");

    printf("p\tp*5\tp*10\n\n");

    for (a=0; a<4; a++) {
printf(" %d \t  %d \t  %d\n",p[a],a[p]*5,a[p]*10);
}
}

Numerical Table in C++

 A sample program to generate numerical table in C++ programming language. The code works with C++ 11 Standard and Higher Version.

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

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


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

/*

Write a program that displays the following table:


p       p*5  p*10


5       25     50


10     50     100


25     125   250


50    250   500


Use C++ 11 or Higher in running this program

*/


#include <iostream>


int main()

{


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

    std::cout << "Numerical Table in C++\n\n";


std::cout << "p\tp*5\tp*10\n\n";



  for(int p : {5, 10, 25, 50})

    std::cout << p << '\t' << p * 5 << '\t' << p * 10 << '\n';

}


US Dollar To Philippine Peso in TypeScript

 A simple program that I wrote to convert the given us dollar to philippine peso using typescript 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

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


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

/* us_peso.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 12, 2022   10:35 PM   Tuesday
   Bacolod City, Negros Occidental
*/

var us_dollar = 65.23;

// Philippine Peso Equivalent
const Phil_Peso =  56.52;

// Calculate US Dollar To Philippine Peso
const solve =(us_dollar * Phil_Peso);

// This code for two decimal places
let round_result = Math.round(solve*100)/100;

console.log();
console.log("US Dollar To Philippines Peso in TypeScript\n");
console.log("$ " + us_dollar + " US Dollar is equal to  PHP " + round_result + " Philippine Peso.\n");
console.log("End of Program\n");







Parenthesis in Java

 A simple program to demonstrate how to use parenthesis 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

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


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



public class Parenthesis {
public static void main(String[] args) {
System.out.println();
System.out.print("Parenthesis in Java");
System.out.println("\n");
System.out.println("The sum = " + 16 + 56);
System.out.println("The sum = " + (16 + 56));
System.out.println(16 + 56 + " is the sum");
System.out.println("The sum of " + 16 + " and " + 56 + " = " + (16 + 56));
System.out.println();
System.out.print("End of Program");
System.out.println();
}
}


Read a Text File in C

 A simple program that I wrote to read a text file 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

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


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

/*read_file.c

 Author    : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT

 Date      : December 2, 2018  Sunday 11:26 AM

 Location  : Bacolod City, Negros Occidental

 Website   : http://www.jakerpomperada.com

 Emails    : jakerpomperada@jakerpomperada.com

             jakerpomperada@gmail.com

             jakerpomperada@yahoo.com

             jakerpomperada@aol.com

*/

#include <stdio.h>

#include <stdlib.h> /* For exit() function */

#include <stdlib.h> /* For system("pause"); statement */

int main()

{

    char c[1000];

    FILE *fptr;

    if ((fptr = fopen("write.txt", "r")) == NULL)

    {

        printf("Error! opening file");

        /* Program exits if file pointer returns NULL. */

        exit(1);         

    }

    /* reads text until newline */

    fscanf(fptr,"%[^\n]", c);

    printf("\n");

    printf("\tReading Data from the file:\n\n%s", c);

    fclose(fptr);

    printf("\n\n");

  printf("\tEND OF PROGRAM");

  printf("\n\n");

  system("pause");

}