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

Do You Want To Continue in C

A simple program to show you how to integrate do you want to continue option 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.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/

Program Listing

/* sum.c
   Written By: Jake R. Pomperada,MAED-IT
   September 19, 2019  */

#include <stdio.h>
#include <ctype.h>

int main() {
	
int x=0,y=0,sum=0;
char ch;
do {
printf("\n");
printf("\tAddition of Two Numbers Using Do While in C");
printf("\n\n");
printf ("\tEnter the first number : ");
scanf ("%d",&x);
printf ("\tEnter the second number : ");
scanf ("%d",&y);
sum=x+y;
printf("\n");
printf ("\tThe total number is: %d\n",sum);
printf("\n\n");
printf ("\tDo you want to repeat the operation Y/N: ");
scanf (" %c", &ch);
} while (toupper(ch) == 'Y');
printf("\n\n");
printf ("\tEnd of Program");
printf("\n\n");
}
Categories
C

Employees Payroll System in C

I wrote this program using a C programming language to solve the salary of the employees in a company.

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

My video tutorial in my Youtube Channel

Program Listing

payroll.c

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


int main()
 {
    char emp_name[200];
    int days_work=0;
    float rate_per_day=0.00;
    
    float solve_salary=0.00;
    
    printf("\n\n");
    printf("\tEmployees Payroll System in C");
    printf("\n\n");
    printf("\tGive Employees Name      : ");
    gets(emp_name);
    printf("\tGive Number of Days Work : ");
    scanf("%d",&days_work);
    printf("\tGive Rate Per Day        : ");
    scanf("%f",&rate_per_day);
    
    solve_salary = (days_work * rate_per_day);
    printf("\n\n");
    printf("\tEmployees Name   : %s\n ",emp_name);
    printf("\tEmployees Salary : $%2.2f\n ",solve_salary);
    printf("\n\n");
    printf("\tEnd of the Program");
    printf("\n\n");
    system("pause");
    printf("\n\n");
} 
        
         
          
Categories
C++

Sum and Average of a Number in C++

I wrote this program 10 years ago in my C++ programming class in college where I am teaching here in Bacolod City, Negros Occidental Philippines. This program uses a one-dimensional array as its data structure to ask the user to give five numbers and then the program will calculate the sum and average of the five numbers and display the results on the screen.


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/

Program Listing

sum_average.cpp

#include <iostream>

using namespace std;

main() {
     int val[5], sum=0, average=0;

     cout << "\t\tSUM AND AVERAGE OF THE NUMBER 1.0";
     cout << "\n\n";
     for (int list=0; list < 5; list++) {
      cout << "Enter Item No. " << list+1 << " : ";
      cin >> list[val];
     }
     cout << "\n";
     for (int list=0; list < 5; list++) {
      sum+=list[val];
      average = (sum/5);
      cout << "  " << list[val] << " ";
     }
     cout << "\nThe total sum of the values is " << sum << ".";
     cout << "\nThe average of the values is " << average << ".";
     cout << "\n\n";
     system("PAUSE");
}
Categories
C++

Square Values Using Functions in C++

I wrote this program almost 10 years ago that will ask the user to give a series of values and then the program will compute the square values of the given series of numbers using functions in C++ programming language. Happy New year to all my followers and visitors to my website. Thank you for all the support.


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/

Program Listing

square.cpp

#include <iostream>
#include <iomanip>

 using namespace std;

// Global Variable

int values[6],a=0;

 void accept_data(void);
 void display_result(void);

 void accept_data()
 {
    for (a=1; a<=5; a+=1) {
          cout << "Enter Value No. "
               << a << " : ";
           cin >> a[values];
      }
 }

 void display_result()
 {
            cout << "\n\n";
            cout << setw(5)
                 << "VALUES"
                 << setw(18)
                 << "SQUARE VALUES";
            cout << "\n\n";
            for (a=1; a<=5; a+=1) {

           cout <<"\n" << setw(3) << a[values]
                << setw(16)
                << a[values] * a[values];
           }
        cout << "\n\n";
        system("pause");
 }
main() {

     cout << "\n\n";
     cout << "\t\t Square A Value Version 1.0";
     cout << "\n\n\n";

    accept_data();
    display_result();
 }
Categories
C++

College Student Grading System in C++ Programming Language

I wrote this simple program to compute the grade of a college student using C++ as my 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

grades.cpp

#include<iostream>
#include<string>
using namespace std;
int main(){
    string choice;
    string fname, lname, section, course;
    double grade, pg, mg, eg;
    do
    {
        system("cls");
        cout<<"--- Enter choice ---"<<endl;
        cout<<"(1) Enter Student's Data"<<endl;
        cout<<"Type exit/quit to terminate program"<<endl;
        cout<<"#";cin>>choice;
        if (choice=="1")
        {
            cout<<"--- Students Information ---"<<endl;
            cout<<"--- First Name   :";cin>>fname;
            cout<<"--- Last Name    :";cin>>lname;
            cout<<"--- Section      :";cin>>section;
            cout<<"--- Course       :";cin>>course;
            cout<<"--- Students Grading Information ---"<<endl;
            cout<<"--- Prelim Grade :";cin>>pg;
            cout<<"--- Midterm Grade:";cin>>mg;
            cout<<"--- Endter Grade :";cin>>eg;
            grade = (pg*.3)+(mg*.3)+(eg*.4);
            system("cls");
            cout<<"--- Printing Student's Information ---"<<endl;
            cout<<"--- "<<lname<<", "<<fname<<" "<<endl;
            cout<<"--- Course and Section ---"<<endl;
            cout<<"--- Course       :"<<course<<endl;
            cout<<"--- Section      :"<<section<<endl;
            cout<<"--- Final Grade  :"<<grade<<endl;
            cout<<"--- Press 'c' to return to menu ---"<<endl;
            cin>>choice;
        }
        else
        {
            break;
        }
    }
    while(choice!="exit" || choice!="quit");
return 0;
}
Categories
C++

Making a Directory in C++

In this article, I would like to share with you guys a code that will create a directory using C++ as my programing 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/

Program Listing

directory.cpp

#include<iostream>

#include<dir.h>

using namespace std;

int main(){
    char dir[200];
    cin>>dir;
    mkdir(dir);
return 0;
}
Categories
C

Perfect Square Checker in C Language

I wrote this program to ask the user to give a number and then the program will check whether the given number is a perfect square number or not.

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

Sample Program Output

Program Listing

perfect_square.c

/* perfect_square.c
   Jake R. Pomperada
   December 25, 2019 
   Wednesday   */

#include<stdio.h>

int main()
{
    printf("\n\n");
	printf("\tPerfect Square Checker in C Language");
    printf("\n\n");
      int i=0, number=0;
    printf("\tGive a Number : ");
    scanf("%d", &number);

   
    for(i = 0; i <= number; i++)
    {
        if(number == i*i)
        {
            printf("\n");
            printf("\tThe given number %d is a Perfect Square Number.",number);
            return 0;  
        }
    }
     printf("\n");
     printf("\tThe given number %d is Not Perfect Square Number.",number);
     printf("\n");
     printf("\tEnd of Program");
     printf("\n");
}
Categories
C++

Count Number of Words and Digits in a Sentence in C++

I wrote this program to ask the user to give a sentence and then the program will count the number of words and digits in the sentence and display the results on the screen using a 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.

Home

https://www.unlimitedbooksph.com/

Program Listing

count.cpp

// Word and Number Counter 1.0 in C++
// Author : Mr. Jake Rodriguez Pomperada, MAED - Instructional Technology
// Date   : October 3, 2009 Saturday
// Email  : jakerpomperada@yahoo.com


#include <iostream>
#include <string>
#include <cctype>


using namespace std;

// Function to count the words in the sentence

 int WordCount(string sentence)
{
    int length = sentence.length();
    int words = 1;

    for (int size = 0; length > size; size++)
    {

       if (sentence[size] == ' ' && sentence[size-1] != ' ')
         words++;      // Count the words if there is a space
    }
    if ( sentence[0] == ' '/*space*/ )
      words--;
    return words ;
}


// Function to count digits in the sentence

 int NumCount(string sentence)
{
   int digits=0,count=0;

  char c;

while ( sentence[count] != '\0' && sentence[count] != '\n' ) {
  c = toupper( sentence[count] );

    if(c>='0'&& c<='9') {

	digits++;
    }
count++;
}
 return digits;

}


main()
 {
     char string2[500];

     cout << "\n\n\t\t  WORD AND NUMBER COUNTER 1.0 in C++ ";
     cout << "\n\n\t  Created By: Mr. Jake Rodriguez Pomperada, MAED-IT";
     cout << "\n\n\n";

     cout << "Enter a sentence :=> ";
     cin.getline(string2,500);

     cout << "\n\n\n";
     cout << "\n\t === GENERATED REPORT === ";
     cout << "\n\nThe number of word(s) in the sentence is "
          << WordCount(string2) << ".";
     cout << "\n\nThe number of digits(s) in the sentence is "
          << NumCount(string2) << ".";
     cout << "\n\n";

   system("PAUSE");
 } // End of Code

Categories
C++

Global and Local Variables in C++

Here is a simple program in C++ programming langage to show how to declare and use local and global variables.

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/

Program Listing

variables.cpp

#include<iostream>

using namespace std;

int Displayg_var();
int Func1();
int Func2();

int g_var=0;

int main()
{

    Displayg_var();
                                          system("Pause");
    g_var=6;
                                          system("Pause");
    Displayg_var();
                                          system("Pause");
    Func1();
                                          system("Pause");
    Displayg_var();
                                          system("Pause");
    Func2();

    system("Pause");
    return 0;
}

int Displayg_var()
{
    cout<<"\n\nThe Value of v_gar now is: "<<g_var<<endl;
}

int Func1()
{
    g_var=3;
}

int Func2()
{
    int g_var;

    g_var=101;
    cout<<"\n\nThe value of g_var(local variable) inside Func2 is: "<<g_var<<endl;
}