Thursday, July 28, 2022

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

Friday, July 22, 2022

Pounds To Kilograms in TypeScript

Pounds To Kilograms in TypeScript

 Machine Problem

Write a program to solve the given pounds value 5.73 into kilograms 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

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


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

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

var pounds = 5.73;

// conversion factor
const factor = 0.453592;

// calculate kilograms
const kilograms = pounds * factor
let round_result = Math.round(kilograms*100)/100;

console.log();
console.log("Pounds To Kilograms in TypeScript\n");
console.log(pounds + " pounds is equal to " + round_result + " kilograms.\n");
console.log("End of Program\n");






Thursday, July 21, 2022

Kilometers To Miles in TypeScript

Kilometers To Miles in TypeScript

 Machine Problem

Write a program to solve the given kilometer distance value of 8.23  into miles 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

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


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


/* kilometers_miles.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 11, 2022   10:26 PM   Monday
   Bacolod City, Negros Occidental
*/


 var kilometers = 8.23;

// conversion factor
const factor = 0.621371

// calculate miles
const miles = kilometers * factor
let round_result = Math.round(miles*100)/100;

console.log();
console.log("Kilometers To Miles in TypeScript\n");
console.log(kilometers + " kilometers is equal to " + round_result + " miles.\n");
console.log("End of Program\n");