Friday, February 17, 2023

Reverse Three Numbers in C++

  A program that will ask the user to give three numbers and then the program will reverse the arrangement of the three given numbers and display the results on the screen 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 <iostream> using namespace std; int main() { int n=0; cout <<"\n\n"; cout <<"\tReverse Three Numbers in C++\n\n"; cout <<"\tGive Three Digit Numbers : "; cin >> n; cout <<"\n\n"; cout <<"\tThe reversal value " << n % 10 << (n / 10) % 10 << (n / 100) <<"."; cout <<"\n\n"; cout <<"\tEnd of Program"; cout <<"\n\n"; return 0; }

Thursday, February 16, 2023

Reverse Three Numbers in C

Reverse Three Numbers in C

 A program that will ask the user to give three numbers and then the program will reverse the arrangement of the three given numbers and display the results on the screen 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 n=0; printf("\n\n"); printf("\tReverse Three Numbers in C\n\n"); printf("\tGive three digit numbers : "); scanf("%d", &n); printf("\n\n"); printf("\tThe reversal value %d%d%d.\n", n % 10, (n / 10) % 10, n / 100); printf("\n\n"); printf("\tEnd of Program"); printf("\n\n"); return 0; }

Wednesday, February 15, 2023

Meters To Feet Using Pointers in C

 A simple program to ask the user to give length in meters and convert it into feet equivalent 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> void meters_to_feet_conversion(double* meters, double* feet) { *feet = (*meters * 3.28084); } int main() { double meters=0.00, feet=0.00; printf("\n\n"); printf("\tMeters To Feet Using Pointers in C\n\n"); printf("\tGive length in meters: "); scanf("%lf", &meters); meters_to_feet_conversion(&meters, &feet); printf("\n\n"); printf("\tDisplay Result\n\n"); printf("\t%.2f meters is equal to %.2f feet", meters, feet); printf("\n\n"); printf("\tEnd of Program"); printf("\n\n"); return 0; }

Tuesday, February 14, 2023

Meter To Feet in C

Meter To Feet in C

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

#include <stdio.h> void main() { float meter=0.00; float feet=0.00; printf("\n\n"); printf("\tMeter To Feet in C\n\n"); printf("\tGive Length in Meters : "); scanf("%f", &meter); feet = (meter*3.26); printf("\n\t%5.2f meter in feet = %5.2f \n",meter,feet); printf("\n\n"); printf("\tEnd of Program\n"); }

Heap Sort in C++

Heap Sort in C++

 A program that I wrote to demonstrate the concept of heap sort algorithm 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 <iostream>

  

  using namespace std;

  

  void comparison(int arr[], int n, int i) {

    int max = i; 

    int leftChild = 2 * i + 1;

    int rightChild = 2 * i + 2;

  

    

    if (leftChild < n && arr[leftChild] > arr[max])

      max = leftChild;

  

   

    if (rightChild < n && arr[rightChild] > arr[max])

      max = rightChild;

  


    if (max != i) {

      swap(arr[i], arr[max]);

      comparison(arr, n, max); 

    }

  }

  

  

  void heapSort(int arr[], int n) {

    

    for (int i = n / 2 - 1; i >= 0; i--)

      comparison(arr, n, i);

  

    

    for (int i = n - 1; i >= 0; i--) {

      swap(arr[0], arr[i]); 

  

      comparison(arr, i, 0); 

    }

  }

  

 

  void display_results(int arr[], int n) {

    cout <<"\t";

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

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

    cout << "\n";

    

  }

  

  

  int main() {

    int array_values[] = {400, -1, -78, 212, 162, 8, 67, 35};

    int n = sizeof(array_values) / sizeof(array_values[0]);

    

    cout << "\n\n";

    cout << "\tHeap Sort in C++\n\n";

    cout << "\tOriginal Array Values\n\n";

    display_results(array_values, n);

    heapSort(array_values, n);

  

     cout << "\n\n";

    cout << "\tSorted Array Values\n\n";

    display_results(array_values, n);

    cout <<"\n\n";

    cout <<"\tEnd of Program";

    cout <<"\n\n";

   }





Gotoxy in Dev C++

Gotoxy in Dev C++

 A simple program to show how to declare gotoxy command in Dev C++.

 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>

#include <windows.h>

#include <stdlib.h>


using namespace std;


int main() {

  

  

void gotoxy(short x, short y);

       

   

    gotoxy(25,5);

    cout <<"\tGotoxy in Dev C++";

cout <<"\n\n\n";

  system("pause");

}


void gotoxy(short x, short y)           //definition of gotoxy function//                                               

{

 COORD pos ={x,y};

 SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);

}


Monday, February 13, 2023

Divide and Product of Two Numbers in C++

Divide and Product of Two Numbers in C++

 A simple program to compute the quotient and product of two numbers 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 <iostream> using namespace std; int main() { int a=100,b=5; int divide=0, product=0; divide = a/b; product = a*b; cout <<"\n\n"; cout << "\tThe Quotient is " << divide << ".\n\n"; cout << "\tThe Product is " << product << ".\n"; }

Sunday, February 12, 2023

US Dollar To Japanese Yen in Java

US Dollar To Japanese Yen in Java

 A program to ask the user to give US Dollar value and convert it into Japanese Yen equivalent 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

import java.util.Scanner;

import java.text.DecimalFormat;


public class Main {



public static void main(String[] args) {


double usd = 0.00;

       double rate = 105.48;



Scanner scan = new Scanner(System.in);



        System.out.println();

        System.out.println("\tUS Dollar To Japanese Yen in Java");

        System.out.println();

        System.out.print("\tGive US Dollar : ");

    usd = scan.nextDouble();

scan.close();

        double yen = usd * rate;

    

System.out.println();

DecimalFormat df = new DecimalFormat("0.00");

        String formattedYen = df.format(yen);

        

        System.out.println("\t" + usd + " US dollars is equal to " + formattedYen + " Japanese yen.");

    

System.out.println();

        System.out.println("\tEnd of Program");

        System.out.println();


}


}

Cube a Number Using a Method in Java