Friday, September 30, 2022

Increment a Number in C++

Increment a Number in C++

 A simple program to increment a given number 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/


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>


int main()
{
 int a=10,b=20;

 std::cout << "\n\n";
 std::cout <<"\tIncrement a Number in C++";
 std::cout << "\n\n";
 std::cout << "\tOrginal Value of A   : " << a <<"\n";
 std::cout << "\n\n";

 a++;

 std::cout << "\tIncrement Value of A : " << a <<"\n";
 std::cout << "\n\n";
 std::cout << "\tOrginal Value of B   : " << b <<"\n";
 std::cout << "\n\n";

 b++;

 std::cout << "\tIncrement Value of B : " << b <<"\n";
 std::cout << "\n\n";
 std::cout << "\tEnd of Program";
 std::cout << "\n\n";


}

Introduction To C++

Reverse a Number in C

Reverse a Number in C

 A program that will ask the user to give a number and then the program will reversed the arrangement of the given number 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/


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

reverse.c

#include <stdio.h>


int main()

{

    int n=0;

    int rev_num = 0;

    

    printf("\n\n");

    printf("\tReverse a Number in C");

    printf("\n\n");

    printf("\tGive a Number : ");

    scanf("%d",&n);

    

    while(n!=0){

      rev_num = rev_num * 10 + n%10;

      n = n/10;

    }

    

    printf("\n\n");

    printf("\tReversed Number : %d", rev_num);

    printf("\n\n");

    printf("\tEnd of Program");

    printf("\n\n");

}


Student Year Level in Java

Thursday, September 29, 2022

Student Year Level in Java

 A simple program to ask the user to give year level and then the program will check if the given year level belongs to freshmen, sophomore, juniors or seniors 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/


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

public static void main(String[] args) {
// TODO Auto-generated method stub
  int year_level;
  Scanner input = new Scanner(System.in);
  
    System.out.println();
       System.out.print("\tStudent Year Level in Java\n");
   System.out.println();
  System.out.print("\tEnter your year level: ");
  year_level = input.nextInt();
  
  System.out.println("\n");
  
  switch (year_level)
  {
  case 1: System.out.println("\tYou Belong To Freshmen."); break;
  case 2: System.out.println("\tYou Belong To Sophomore."); break;
  case 3: System.out.println("\tYou Belong To Juniors."); break;
  case 4: System.out.println("\tYou Belong To Seniors."); break;
  default: System.out.println("\tInvalid Year Level. Try Again.");
    }
   
  System.out.println("\n");
  System.out.print("\tEnd of Program\n"); 
input.close();
}
}


Cube a Number Using Pointers in C++

Cube a Number Using Pointers in C++

 A program that will ask the user to give a number and then the program will compute the cube value of the given number 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

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


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada



You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


Thank you very much for your support.





Program Listing


#include <iostream>

using namespace std;

int main() 
{
int num=0, cube=0;
    int *pointer;
    
    cout <<"\n\n";
    cout <<"\tCube a Number Using Pointers in C++\n\n";
    cout <<"\n\n";
    cout << "\tGive a number : ";
    cin >> num;
    
    pointer = &num;
    
    cube = *pointer * *pointer * *pointer;
    
    cout <<"\n\n";
    cout << "\tThe Cube of " << num << " is " << cube <<".\n";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";
}


Swap of Two Numbers Using Pointers in C++

Swap of Two Numbers Using Pointers in C++

  A program to ask the user to give two numbers and then the program will swap the two given numbers 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

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


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada



You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


Thank you very much for your support.





Program Listing

#include <iostream>

using namespace std;

int swaping(int *x, int *y)
{
    int temp;

    temp = *x;
    *x   = *y;
    *y   = temp;
}

int main()
{
    int a=0, b=0;

    cout <<"\n\n";
    cout <<"\tSwap of Two Numbers Using Pointers in C++";
    cout <<"\n\n";
    cout <<"\tGive values for a and b : ";
    cin >> a >> b;
    

    cout <<"\n\n\tBefore swapping of numbers : a = " <<a <<
" and b = " << b << "\n";

    swaping(&a,&b);

    cout <<"\n\tAfter swapping of numbers : a = " << a <<
" and b = " << b << "\n";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";
}




Wednesday, September 28, 2022

Swap of Two Numbers Using Pointers in C

Swap of Two Numbers Using Pointers in C

 A program to ask the user to give two numbers and then the program will swap the two given numbers 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

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


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada



You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


Thank you very much for your support.





Program Listing

#include <stdio.h>

int swaping(int *x, int *y)
{
    int temp;

    temp = *x;
    *x   = *y;
    *y   = temp;
}

int main()
{
    int a=0, b=0;

    printf("\n\n");
    printf("\tSwap of Two Numbers Using Pointers in C");
    printf("\n\n");
    printf("\tGive values for a and b : ");
    scanf("%d%d", &a, &b);

    printf("\n\n\tBefore swapping of numbers : a = %d and b = %d\n", a, b);

    swaping(&a, &b);

    printf("\n\tAfter swapping of numbers : a = %d and b = %d\n", a, b);
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
}




Student Year Level Checker in C++

Student Year Level Checker in C++

 A program to ask the user to give a number and then the problem will check the year level of the student 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



You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


Thank you very much for your support.


 




Program Listing


// year_level.cpp

// Author : Mr. Jake R. Pomperada, BSCS, MAED-IT

// Date : August 16, 2018 Thursday

// Website : http://www.jakerpomperada.com

// Email : jakerpomperada@jakerpomperada.com


#include <iostream>


using namespace std;


int main()

{

int year_level=0;


cout <<"\n\n";

cout << "\tYear Level Checker in C++";

cout << "\n\n";

cout << "\tWhat is your year level? : ";

cin >> year_level;

if (year_level==1) {

cout <<"\n\n";

cout <<"\tYou belong to Freshmen.";

}

if (year_level==2) {

cout <<"\n\n";

cout <<"\tYou belong to Sophomore.";

}

if (year_level==3) {

cout <<"\n\n";

cout <<"\tYou belong to Juniors.";

}

if (year_level==4) {

cout <<"\n\n";

cout <<"\tYou belong to Seniors.";

}

if (year_level <1 || year_level >4) {

cout <<"\n\n";

cout <<"\tInvalid Year Level. Try Again !!!";

}

cout <<"\n\n";

cout <<"\tEnd of Program";

cout <<"\n\n";

}


Leap Year Using a Function in C++

Leap Year Using a Function in C++

 A program to ask the user to give a year and then the program will check if the given year is a leap year or not using a function 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

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


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 leap_year(int year)
{
cout << "\n\n";
if (year%400 == 0)
    cout<<"\tThe given year " <<year<<" is a leap year.\n";
  else if ( year%100 == 0)
    cout<<"\tThe given year " <<year<<" is not a leap year.\n";
  else if ( year%4 == 0 )
    cout <<"\tThe given year "<<year<<" is a leap year.\n";
  else
    cout << "\tThe given year "<<year<<" is not a leap year.\n";
  cout << "\n\n";
  cout <<"\tEnd of Program";
  cout << "\n\n";
}

int main()
{
  int year=0;

  cout << "\n\n";
  cout<<"\tLeap Year Using a Function in C++\n\n";
  cout<<"\tWhat is the year? ";
  cin>>year;

  leap_year(year);


}