Categories
C

Leap Year Checker in C

A program that I wrote to ask the user to give a year and then the program will determine whether the given year is a leap year or not a leap year.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

/* leap_year.c
 * Author  : Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
 * Date    : October 8, 2020   Thursday
 * Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com
 * Email   : jakerpomperada@gmail.com
 * Place   : Bacolod City, Negros Occidental Philippines
 */

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    int year=0;
      
    printf("\n\n");
    printf("\tLeap Year Checker in C");
	printf("\n\n");
	printf("\tGive a year :");
    scanf("%d", &year);
    printf("\n\n");
    if ((year % 400) == 0)
        printf("\tThe given year %d is a leap year. \n", year);
    else if ((year % 100) == 0)
        printf("\tThe given year %d is a not leap year. \n", year);
    else if ((year % 4) == 0)
        printf("\tThe given year %d is a leap year. \n", year);
    else
        printf("\tThe given year %d is not a leap year. \n", year);
    
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
	system("pause");
}
        
        
Categories
C

Volume of a Sphere Converter in C

 A simple program that I wrote that will ask the user to give value in radius and then the program will compute the volume of a sphere using C programming language.I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com

#include <stdio.h>

#define PI  3.14

int main()
{   
    float volume_sphere = 0.00;
    float radius = 0.00;
   	printf("\n\n");
	printf("\tVolume of a Sphere Converter");
	printf("\n\n");
	printf("\tEnter Radius Value : ");
    scanf("%f",&radius);

    /* Compute the volume of Sphere */
    
    volume_sphere = (4.0/3.0)*(PI*radius*radius*radius);
    
	printf("\n\n");
	printf("\tThe Volume of Sphere is %5.2f.",volume_sphere);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}
Categories
C

Temperature Checker in C

 A temperature program that I wrote using C programming language.I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com

#include <stdio.h>

int main()
{   

char *temp_value[] = {"ICE","WATER","STEAM"};
	                      
char  *display_temp; 

    int temperature = 0;
   	printf("\n\n");
	printf("\tTemperature Checker in C");
	printf("\n\n");
	printf("\tWhat is the Temperature? : ");
    scanf("%d",&temperature);
   
   if (temperature < 0) {
   	display_temp = temp_value[0];
   } else if (temperature > 100) {
   	 display_temp = temp_value[2]; 	
   }
     
    switch(temperature) {
     case 0 : case 1 : case 2 : case 3 : case 4 : case 5: 
     case 6 : case 7 : case 8 : case 9 : case 10: 
     case 11 : case 12 : case 13 : case 14 : case 15: 
     case 16 : case 17 : case 18 : case 19 : case 20: 
     case 21 : case 22 : case 23 : case 24 : case 25: 
     case 26 : case 27 : case 28 : case 29 : case 30: 
     case 31 : case 32 : case 33 : case 34 : case 35: 
     case 36 : case 37 : case 38 : case 39 : case 40: 
     case 41 : case 42 : case 43 : case 44 : case 45: 
     case 46 : case 47 : case 48 : case 49 : case 50: 
     case 51 : case 52 : case 53 : case 54 : case 55: 
     case 56 : case 57 : case 58 : case 59 : case 60: 
     case 61 : case 62 : case 63 : case 64 : case 65: 
     case 66 : case 67 : case 68 : case 69 : case 70: 
	 case 71 : case 72 : case 73 : case 74 : case 75: 
     case 76 : case 77 : case 78 : case 79 : case 80: 
     case 81 : case 82 : case 83 : case 84 : case 85: 
     case 86 : case 87 : case 88 : case 89 : case 90: 
     case 91 : case 92 : case 93 : case 94 : case 95: 
	 case 96 : case 97 : case 98 : case 99 : case 100: 
	 		 display_temp = temp_value[1];
    	     break;
    }
    
   	printf("\n\n");
	printf("\tThe Temperature is %s.", display_temp);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}

Categories
C

US Dollar To Philippine Peso Converter Using C Language

 A simple program to ask the user to give a value in US Dollar and then convert into Philippine Peso using C programming language.I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com

#include <stdio.h>

#define PHIL_PESO  50.74

int main()
{   
    float convert = 0.00, us_dollar = 0.00;
   
   	printf("\n\n");
	printf("\tUS Dollar To Philippine Peso Converter");
	printf("\n\n");
	printf("\tEnter US Dollar Value : ");
	scanf("%f",&us_dollar);
	
	convert = (us_dollar *  PHIL_PESO);
	  
	printf("\n\n");
	printf("\tThe value of $%2.2f US Dollars in ",us_dollar);
	printf("Philippine Peso is PHP %2.2f.",convert);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}
Categories
C

Calculate Average of Numbers Using Array in C

A program written by my friend and fellow software engineer Sir Ernel. Thank you Sir Ernel for sharing your program with us.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

#include <stdio.h>
int main()
{
    int n, i;
    float num[100], sum=0.0, average;
    printf("Enter the numbers of data: ");
    scanf("%d",&n);
    while (n>100 || n<=0)
    {
        printf("Error! number should in range of (1 to 100).\n");
        printf("Enter the number again: ");
        scanf("%d",&n);
    }
   for(i=0; i<n; ++i)
   {
      printf("%d. Enter number: ",i+1);
      scanf("%f",&num[i]);
      sum+=num[i];
   }
   average=sum/n;
   printf("Average = %.2f",average);
   return 0;
}

Categories
C

Parallelogram Pattern in C

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, for sharing your code to us.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

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.unlimitedbooksph.com/

Program Listing

#include<stdio.h>
int main()
{
    int i,j,k=0,space=1,size;
    printf("Enter size:\n");
    scanf("%d",&amp;size);
    for(i=size;i>=1;i--)
    {
     for(j=1;j<=i;j++)
     {
      printf("%c",i+64);
     }
     if(i!=size)
     {
       for(k=1;k<=space;k++)
       {
         printf(" ");
       }
        space+=2;
     }
     for(j=i;j>=1;j--)
     {
      if(j!=size)
      printf("%c",i+64);
     }
     printf("\n");
    }
   //Reverse printing
    space-=4;
    for(i=2;i<=size;i++)
    {
     for(j=1;j<=i;j++)
     {
      printf("%c",i+64);
     }
     if(i!=size)
     {
       for(k=1;k<=space;k++)
       {
         printf(" ");
       }
        space-=2;
     }
     for(j=i;j>=1;j--)
     {
      if(j!=size)
      printf("%c",i+64);
     }
     printf("\n");
    }
}
Categories
C

Sum of Digits in C

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, for sharing your code to us.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

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/

Program Listing

#include <stdio.h>

int main()
{
    int n,num,x,sum=0;
    printf("Enter a numbers:");
    scanf("%d",&amp;n);
    while(n>0)
    {
    x=n%10;
    sum=sum+x;
    n=n/10;
    }
printf("Sum of digits of a number=%d",sum);
return 0;
}
Categories
C

C Program without main() and printf

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, for sharing your code to us.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

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/

Program Listing

#include <stdio.h> 
#define Ernel main  
#define Love printf  
int Ernel() 
{    
   Love("Program by: Ernel Fadriquilan");    
   Love("\nContact:09355835409");
}
Categories
C

Draw a Laptop in C

A simple program written by my friend and fellow software engineer Sir Ernel Fadriquilan. thank you very much Sir Ernel for sharing your code to us. This code will draw a Laptop Image using C language and using Turbo C for DOS compiler.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.
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/

Program Listing


#include<stdio.h>
#include<conio.h>
#include<graphics.h>

void main(){
 int gd = DETECT ,gm;
 initgraph(&gd,&gm,"c:\\turboc3\\bgi");

 rectangle(150,100,300,200);
 line(150,200,180,300);
 line(300,200,350,300);
 line(180,300,350,300);

 outtextxy(200,140,"WELCOME");
 rectangle(240,275,280,295);

 outtextxy(190,220,"[] [] [] []");
 outtextxy(200,240,"[] [] [] []");
 outtextxy(210,260,"[] [] [] []");
getch();
}


Categories
C++

Addition of Two Numbers Using Two Dimensional Array in C++

I wrote this simple program to ask the user to give two numbers and then the program will solve the sum of two numbers using two-dimensional arrays in C++ programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.
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/

Program Listing

// Addition of two numbers using two dimensional array
// November 1, 2018  Thursday
// Author: Mr. Jake R. Pomperada,MAED-IT
// www.jakerpomperada.com
// jakerpomperada@gmail.com
// jakerpomperada@jakerpomperada.com
// Product of Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main()
{
	int a[1][1];
	char reply;
	int sum=0;
	
do {

	cout <<"\n\n";
cout << "Addition of Two Numbers Using Two Dimensional Array in C++";
	cout <<"\n\n";
	cout << "Enter first number : ";
	cin >> a[0][0];
	cout <<"Enter second number : ";
	cin >> a[0][1];
	
	sum = (a[0][0]) + (a[0][1]);
	
	cout <<"\n\n";
	cout << "The total sum is " << sum <<".";
	cout <<"\n\n";
	cout <<"Do you want to continue? Y/N : ";
	cin >> reply;
} while(toupper(reply)=='Y');
	cout <<"\n\n";
	cout <<"\tEnd of Program";
	cout <<"\n\n";
}