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";
}
Categories
C

Automatic Teller Machine Simulation in C

A simple program that I wrote using a C programming language to simulate the Automatic Teller Machine operation.

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/

Sample Program Output
#include <stdio.h>
#include <conio.h>

int main()

{
int bill500=0, bill200=0, bill100=0, total_balance=0;
int withdraw=0, money_left=0;
int reciv500=0, reciv200=0, reciv100=0;
char withdraw_again[2] = "N";

	     printf("\n\n");
         printf("\t Automatic Teller Machine Simulation in C");
		 printf("\n\n");
		 printf("\tHow many P500 bills: ");
		 scanf("%d", &bill500);
		 printf("\tHow many PHP 200 bills: ");
		 scanf("%d", &bill200);
		 printf("\tHow many PHP 100 bills: ");
		 scanf("%d", &bill100);
		 total_balance = 	(bill500 * 500) + (bill200 * 200) +  (bill100 * 100) ;

		 printf("\tTotal Balance: PHP %d", total_balance);

	 do

	 {
		 printf("\n");
		 printf("\n");

		 printf("\tEnter amount to withdraw: PHP ");
		 scanf("%d", &withdraw);
		 money_left = withdraw ;

		 if  (withdraw > total_balance)
				{
				printf("\tWithdraw amount greater than total balance.  ");
				printf("\n");
				}
		 if (withdraw < total_balance)
		 {
		 if  (money_left >= 500 )
				{
				 reciv500 = int(money_left / 500);
				 if (reciv500 > bill500 ) reciv500 = bill500;

				 money_left = money_left - (reciv500 * 500);
				 bill500 = bill500 - reciv500;
				}

		 if (money_left >= 200 )
			 {
				 reciv200 = int(money_left / 200);
				 if (reciv200 > bill200 ) reciv200 = bill200;
				 money_left = money_left - (reciv200 * 200);
				 bill200 = bill200 - reciv200;
			 }

		 if (money_left >= 100 )
			  {
				 reciv100 = int(money_left / 100);
				 if (reciv100 > bill100 ) reciv100 = bill100;
				 money_left = money_left - (reciv100 * 100);
				 bill100 = bill100 - reciv100;
				}

				printf("\n");
				printf("\n");
				printf("\tYou will receive:");
				printf("\n");
				printf("\t%d  PHP 500 bill", reciv500);
				printf("\n");
				printf("\t%d  PHP 200 bill", reciv200);
				printf("\n");
				printf("\t%d  PHP 100 bill", reciv100);
				printf("\n");


				total_balance = total_balance - withdraw;

				printf("\tYour current balance is: PHP %d", total_balance);

				printf("\n");
				printf("\n");
				printf("\tYou only have balance of:");
				printf("\n");
				printf("\t%d  PHP 500 bill", bill500);
				printf("\n");
				printf("\t%d  PHP 200 bill", bill200);
				printf("\n");
				printf("\t%d  PHP 100 bill", bill100);
				printf("\n");
 				printf("\n\n");
				printf("\tAnother Withdraw Again ? Y/N : ");
				scanf("%s", &withdraw_again);

		 }

	 }  while (withdraw_again == "Y" || withdraw_again == "y" );
     printf("\n\n");
     printf("\tEnd of Program");
     printf("\n\n");
}
Categories
Perl

Grade Checker in Perl

I wrote this program using Perl programming language to ask the user to give a grade and then the program will check if the given grade by the user pass or fails using conditional statement if in Perl.

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/

Sample Program Output
# grade.pl
# Author  : Jake Rodriguez Pomperada,MAED-IT,MIT
# Date    : March 25, 2020  11:58 AM
# Website : http://www.jakerpomperada.com
# Email   : jakerpomperada@gmail.com

print "\n\n";
print "\tGrade Checker in Perl";
print "\n\n";
print "\tEnter your Grade  : ";
chomp($grade=<>);

if ($grade >= 75) {
    print "\n";
    print "\tYour grade is $grade%. You pass the subject.";
}

if ($grade < 75) {
print "\n";
print "\tYour grade is $grade%. You fail the subject.";
}

print "\n\n";
print "\tEnd of the Program";
print "\n\n";
Categories
C++

ASCII Value of a Character in C++

I wrote this simple program to ask the user to give any character and then the program will convert the given character into an ASCII value using C++ as my programming language. ASCII stands for American Standard Code For Information Interchange.

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, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.comMy 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/

Sample Program Output
#include<iostream>

using namespace std;

int main()
{
	char ch;
	
	cout <<"\n\n";
	cout <<"\tASCII Value of a Character in C++";
	 cout <<"\n\n";
	cout<<"\tEnter any character : ";
	cin>>ch;
    cout <<"\n\n";
	cout<<"\tThe ASCII equivalent is : "<<static_cast<int>(ch);
     cout <<"\n\n";
	 cout <<"\tEnd of Program";
     cout <<"\n\n";

}
Categories
C++

cout in C++

I wrote this program to show how to declare and use the cout statement in the C++ programming language. I am using code blocks as my text editor and g++ as my c++ compiler in writing this simple program.


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

Home

https://www.unlimitedbooksph.com/

Sample Program Output

Program Listing
// cout.cpp
// February  19, 2020
// Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;


int main()
{
    cout <<"\n\n";
    cout <<"\tAuthor : Jake Rodriguez Pomperada";
    cout <<"\n\n";
    cout << "\tSample Text Display Using cout in C++";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";
}
Categories
C

Decimal To Binary Number Converter

I wrote this program that will ask the user to give the decimal number and then the program will convert the given decimal number into binary number equivalent 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, 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/

Sample Program Output

Program Listing

binary.c

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

int main()
{
long int d;
int i=0,a[25],j;
printf("\tDecimal To Binary Number Converter");
printf("\n\n");
printf("Enter the Decimal No.:");
scanf("%d",&d);
while(d>0)
{
a[i]=d%2;
d=d/2;
i++;
}
printf("Binary Number Equivalent : ");
for (j=i-1;j>=0;j--)
printf("%d",a[j]);
getch();
}