Friday, July 29, 2022

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");


Thursday, July 28, 2022

Numerical Table in C

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++

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';

}


Wednesday, July 27, 2022

US Dollar To Philippine Peso in TypeScript

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");







Tuesday, July 26, 2022

Parenthesis in Java

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

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");

}



Monday, July 25, 2022

Greet a Stranger in Java

Greet a Stranger in Java

 A simple program that I wrote in Java that will ask the persons name, and age then the program will greet the person which is a stranger.

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

import java.util.Scanner;  


public class Greet {

public static void main(String [] args) {


Scanner input = new Scanner(System.in);  // Create a Scanner object


String my_name, greeting, myAge;


greeting = "Hello ";


System.out.println();

    System.out.print("Greet a Stranger in Java\n");

// Your input name, via terminal

    System.out.println();

System.out.print("Please introduce your name : ");

my_name = input.nextLine();


// Your input age

System.out.print("Please introduce your age  : ");

myAge = input.nextLine();


// Concatenation

// Output

System.out.println();

System.out.println(greeting + my_name + "! \nYour age is " + myAge+" years old.");

input.close();

}

}


Sunday, July 24, 2022

String Copy in Java

String Copy in Java

 A simple program to demonstrate how perform string copy 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

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


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 Test {


public static void main(String[] args) {

// TODO Auto-generated method stub

   System.out.println("String in Copy in Java\n");

String s = "Copy a String in Java";

        String copy = new String(s);

        System.out.println(copy);

     System.out.println();

     System.out.print("End of Progam");

     System.out.println();


}


}


How To Push a File in the Repository Using Git

How To Commit A File in Git