Saturday, November 30, 2019

Decimal To Hexadecimal Converter in C++

A simple program that will ask the user to give an integer number and then the program will convert the given integer number into hexadecimal number equivalent 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.





Sample Program Output



Program Listing

hexadecimal.cpp

#include <iostream>

using namespace std;

int main()
{

long int decnum=0, rem=0, quot=0;
char hexdecnum[100];
int i=1, j, temp;
cout <<"\tDecimal To Hexadecimal Converter in C++";
    cout <<"\n\n";
cout<<"\tGive an Integer Number :  ";
cin>>decnum;
quot=decnum;
while(quot!=0)
{
temp=quot%16;
if(temp<10)
{
temp=temp+48;
}
else
{
temp=temp+55;
}
hexdecnum[i++]=temp;
quot=quot/16;
}
cout <<"\n\n";
cout<<"\tThe equivalent hexadecimal value of "<<decnum<<" is : ";
for(j=i-1; j>0; j--)
{
cout<<hexdecnum[j];
}
cout <<"\n\n";
     cout <<"\tEnd of Program";
     cout <<"\n";
}



Perfect Number Checker in C++

A simple program that I wrote that will ask the user to give a number and then the program will check if the given number is a perfect number or not 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.




Sample Program Output


Program Listing

perfect.cpp

#include<iostream>

using namespace std;

int main ()
{  
    int i=0, num=0, div=0, sum=0;
    
    cout <<"\tPerfect Number Checker in C++";
    cout <<"\n\n";
    cout << "\tGive a Number : ";
    cin >> num;
     cout <<"\n\n";
    for (i=1; i < num; i++)
    {
        div = num % i;
        if (div == 0)
            sum = sum + i;
    }
    if (sum == num)
        cout << "\t" << num <<" is a perfect number.";
    else
        cout << "\t" << num <<" is not a perfect number.";
        cout <<"\n\n";
        cout <<"\tEnd of Program";
        cout <<"\n";
}


Friday, November 29, 2019

Fibonacci Series Numbers in C

I wrote this program that will ask the to give a number and then program will compute the Fibonacci series 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.




Sample Program Output


Program Listing

fibonacci.c

#include <stdio.h>

int main()
{
  int n=0, first = 0, second = 1, next=0, c=0;
  printf("\n\n");
  printf("\tFibonacci Series Numbers in C");
  printf("\n\n");
  printf("\tGive number of terms : ");
  scanf("%d", &n);
  printf("\n\n");
  printf("\tFirst %d terms of Fibonacci series are:\n", n);
  printf("\n");
  for (c = 0; c < n; c++)
  {  

    if (c <= 1)
      next = c;
    else
    {
      next = first + second;
      first = second;
      second = next;
    }
    printf("\t");
    printf("%d\n", next);
  }

  printf("\n\n");
  printf("\tEnd of Program");
}




Swap Two Numbers in C

I wrote this program to ask the user to give two numbers then the program will swap two numbers given by the user and display the before and afters of arrangement of 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.




Sample Program Output


Program Listing

swap.c

#include <stdio.h>

int main()
{
  int x=0, y=0, temp=0;

  printf("\n\n");
  printf("\tSwap Two Numbers in C");
  printf("\n\n");
  printf("\tGive Two Numbers : ");
  scanf("%d%d", &x, &y);
  
  printf("\n");
  printf("\tBefore Swapping\n\n\tFirst Value = %d\n\tSecond Value = %d\n", x, y);
  printf("\n");
  temp = x;
  x = y;
  y = temp;

  printf("\n");
  printf("\tAfter Swapping\n\n\tFirst  Value = %d\n\tSecond Value = %d\n", x, y);
  printf("\n\n");
  printf("\tEnd of Program");
}


Find the Smallest Number From Three Numbers in C

A simple program to find the smallest number based on the given three numbers by the user using the 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.


Program Listing

#include <stdio.h>

int a=0,b=0,c=0;

int main() {

      printf("\tFIND SMALLEST OF GIVEN THREE NUMBERS IN C");
      printf("\n\n");
      printf("\tGive Three Numbers : ");
      scanf("%d%d%d",&a,&b,&c);

      if(a<=b && a<=c){
printf("\n\n");
         printf("\tThe smallest number is %d.", a);
        }
      if(b<=a && b<=c) {
printf("\n\n");
         printf("\tThe smallest number is %d.",b);
}

      if(c<=a && c<=b) {
     printf("\n\n");
         printf("\tThe smallest number is %d.",c);
     }

      printf("\n\n");
      printf("\tEnd of Program");
}

7 Tips For Finding Your Purpose in Life

10 Simpleng Paraan Para Makaipon

How To Become a Computer Programmer

Thursday, November 28, 2019

Switch Statement in Java

A simple program that I wrote in Java to demonstrate how to use the Switch 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.


Program Listing

import java.util.*;

public class switchdemo 
{
    public static void main(String[] args) 
    {
        int signal;
        
        System.out.print("Enter typhoon signal: ");
        Scanner sc = new Scanner(System.in);
        signal = sc.nextInt();
        switch(signal)
        {
         case 1:
         System.out.println("\nAll PRE-ELEM level classes are suspended.");
         break;
         case 2:
         System.out.println("\nAll classes on PRE-ELEM & HIGH SCHOOL are suspended.");
         break;
         case 3:
         System.out.println("\nClasses on different levels are suspended.");
         break;
         default:
         System.out.println("\nSTAY AT HOME AND PRAY.");
        }
    }
}

Conditional Statement If-Else If in Java

A simple program to demonstrate how to use if else if statement in Java.

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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.


Program Listing

import java.util.*;

public class activity1_sjg 
{
    public static void main(String[] arg)
    {
         double rank;
         
         System.out.print("Enter your rank: ");
         Scanner sc = new Scanner(System.in);
         rank = sc.nextDouble();
         if(rank == 90)
         { System.out.println("\nRemarks: RANK 10"); }
         else if(rank == 91)
         { System.out.println("\nRemarks: RANK 9"); }
          else if(rank == 92)
         { System.out.println("\nRemarks: RANK 8"); }
        else if(rank == 93)
         { System.out.println("\nRemarks: RANK 7"); }
        else if(rank == 94)
         { System.out.println("\nRemarks: RANK 6"); }
        else if(rank == 95)
         { System.out.println("\nRemarks: RANK 5"); }
        else if(rank == 96)
         { System.out.println("\nRemarks: RANK 4"); }
        else if(rank == 97)
         { System.out.println("\nRemarks: RANK 3"); }
        else if(rank == 98)
         { System.out.println("\nRemarks: RANK 2"); }
        else if(rank == 99)
         { System.out.println("\nRemarks: RANK 1"); }
         else
         { System.out.println("\nRemarks: RANK 1"); }
    }

Swap Two Number Using Functions in C++

This article that I wrote will show you how to write a program using functions to swap two numbers given by the user using the 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.


Program Listing

#include<iostream>
#include<stdlib.h>
using namespace std;

void GetVal(int& Get1,int& Get2);
void SwapVal(int& Swap1,int& Swap2);
void ShowVal(int& Show1,int& Show2);

int main()
{
    int FirstNum,SecondNum;
    GetVal(FirstNum,SecondNum);
    SwapVal(FirstNum,SecondNum);
    ShowVal(FirstNum,SecondNum);
    system("PAUSE");
    return 0;
}

void GetVal(int& Get1,int& Get2)
{
     cout << "Enter 2 values: ";
     cin >> Get1 >> Get2;
}

void SwapVal(int& Swap1,int& Swap2)
{
     int temp;
     temp = Swap1;
     Swap1 = Swap2;
     Swap2 = temp;
}

void ShowVal(int& Show1,int& Show2)
{
     cout << Show1 << "  " << Show2 << "\n";
}

Reading The Content From a Text File in C++

Here is a code that will read the content of a text file from a file in the 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 in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.


Program Listing

#include <fstream>
#include <iostream>
#include <string>

using namespace std;

int main()
{
  string str;  
  ofstream out_file;
  ifstream in_file;
  out_file.open("file.txt");
  out_file<<"This is the first line\n";
  out_file<<"This is the second line\n";
  out_file<<"This is the third line\n";
  out_file<<"This is the fourth line\n";
  out_file.close();
  in_file.open("file.txt");
  getline(in_file,str);    
  cout<<str<<endl;                      
  getline(in_file,str);    
  cout<<str<<endl;                      
  getline(in_file,str);    
  cout<<str<<endl;                      
  in_file.close();
  getline(in_file,str);    
  cout<<str<<endl;                      
    system("pause");
  return 0;
}