Sunday, August 26, 2018

Character Counter Version 1.0 in C++

A very simple character counter that I wrote a long time ago in C++ that will count the vowels, consonants, digits and spaces if else statement.

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are 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.

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


Program Listing

#include <iostream>

using namespace std;

main() {
    int digits=0, vowels=0,consonants=0,spaces=0;
    char c;

    cout << "\n\t Character Counter Version 1.0";
    cout << "\n\n";
    cout << "\t Developed By: Jake R. Pomperada,MAED-IT";
    cout << "\n\n";
    cout << "Enter a Sentence : ";
    while ((c= getchar()) != '\n') {

    if (c == 'a' || c == 'A'  ||
        c == 'e' || c == 'E' ||
        c == 'o' || c == 'O' ||
        c == 'i' || c == 'I' ||
        c == 'u' || c == 'U' )
        {
        vowels++;
        }
   if (c == 'b' || c == 'B'  ||
        c == 'c' || c == 'C' ||
        c == 'd' || c == 'D' ||
        c == 'f' || c == 'F' ||
        c == 'g' || c == 'G' ||
        c == 'h' || c == 'H' ||
        c == 'j' || c == 'J' ||
        c == 'k' || c == 'K' ||
        c == 'l' || c == 'L' ||
        c == 'm' || c == 'M' ||
        c == 'n' || c == 'N' ||
        c == 'p' || c == 'P' ||
        c == 'q' || c == 'Q' ||
        c == 'r' || c == 'R' ||
        c == 's' || c == 'S' ||
        c == 't' || c == 'T' ||
        c == 'v' || c == 'V' ||
        c == 'w' || c == 'W' ||
        c == 'x' || c == 'X' ||
        c == 'y' || c == 'Y' ||
        c == 'z' || c == 'Z' )

         {
       consonants++;
      }


        if (c =='0' || c == '1' ||
         c =='2' || c == '3'
         || c =='4' || c == '5' ||
           c =='6' || c == '7' ||
           c =='8' || c == '9'  ) {
     digits++;
           }


     if (c == ' ') {
         spaces++;
     }

    }
    cout << "\nNo. of Digits " << digits << ".";
    cout << "\nNo. of Vowels " << vowels << ".";
    cout << "\nNo. of Consonants " << consonants << ".";
     cout << "\nNo. of Spaces " << spaces << ".";
    cout << "\n\n";
    system("pause");
}

Count Vowel, Consonants, Digits and Whitespace in C++

In this program will ask the user to give a sentence and then the program using switch statement will count the vowels, consonants, digits and white space using C++.

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are 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.

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


Program Listing

#include <iostream>
#include <string>

using namespace std;


main()  {
    string sentence;
    int NumChars=0, VowelCount=0, ConsonantCount=0;
    int whitespace=0, digits=0;

    cout << "Enter a String :=> ";
    getline(cin,sentence);

    NumChars = sentence.length();

    for (int i=0; i < NumChars; i++) {
          switch(sentence.at(i)) {

              case 'a' : case 'A' :
              case 'e' : case 'E' :
              case 'i' : case 'I' :
              case 'o' : case 'O' :
              case 'u' : case 'U'  : VowelCount++;
                                     break;
              case 'b' : case 'B' :
              case 'c' : case 'C' :
              case 'd' : case 'D' :
              case 'f' : case 'F' :
              case 'g' : case 'G' :
              case 'h' : case 'H'  :

              case 'j' : case 'J'  :
              case 'k' : case 'K' :
              case 'l' : case 'L' :
              case 'm' : case 'M' :
              case 'n' : case 'N' :
              case 'p' : case 'P'  :

              case 'q' : case 'Q' :
              case 'r' : case 'R' :
              case 's' : case 'S' :
              case 't' : case 'T' :
              case 'w' : case 'W'  :

              case 'x' : case 'X' :
              case 'y' : case 'Y' :
              case 'z' : case 'Z' :  ConsonantCount++;
                                     break;
              case '  '  : whitespace++;
                           break;
              case '1' : case '2' :
              case '3' : case '4' :
              case '5' : case '6' :
              case '7' : case '8' :
              case '9' : case '0'  : digits++;



          }
    }
    cout << "\n\n";
    cout << " \n ===  SUMMARY OF REPORTS ===== ";
    cout << "\n\n";
    cout << "\nNumber of Vowels     :=> " << VowelCount << ".";
    cout << "\nNumber of Consonants :=> " << ConsonantCount << ".";
    cout << "\nNumber of Digits     :=> " << digits << ".";
    cout << "\nNumber of WhiteSpce  :=> " << whitespace << ".";
    cout << "\n\n";
    system("PAUSE");
}

Running Sum using Pointers in C++

A very simple program that I wrote along time ago while learning C++ programming in my class in one of the university here in Bacolod City. This program will ask the user to give a number and then it will sum up the total numbers using Pointers in C++.

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are 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.

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


Program Listing

#include<iostream.h>

#include<conio.h>

int main()
{
int array[30];
int sum=0,n=0,*point;
cout << "\t\tRunning Sum Using Pointers";
cout << "\n\n";
cout<<"Enter how many elements ?";
cin>>n;
for(int i=1;i<=n;i++) {
 cout << "\n\n";
 cout << "Enter Value No"
     << i << ":";
cin>>array[i];
point = &array[i];
sum+=array[i];
cout << "\n";
cout<<"The Running Sum is "
    << sum << ".";

}
cout << "\n\n";
system("pause");

}

Insert Three Asterisk in a String in C++

A very simple code that I wrote that will insert three asterisk in a given string in C++ I wrote this code around 7 years ago in my C++ programming class.

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are 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.

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


Program Listing

#include<iostream>
#include<string>

using namespace std;

int main(){

 string str;
 int x;
    cout << "\n\n\t\t Insert Three Asterisk Version 1.0";
    cout << "\n\n\t Created By: Mr. Jake R. Pomperada, MAED-IT";
    cout << "\n\n";
 cout<<"Enter a word: ";
 getline(cin, str);

 x = str.length() / 2;
cout << "\n\nOriginal String :=> " << str;

 str.insert(x, "***");
 cout << "\n\n";
 cout << "After the Process :=> " << str;
 cout << "\n\n";
 system("pause");
 return 0;
}

Student Information System in C++

Here is a very simple Student Information System that I wrote a long time ago in my class in C++ programming in one of the university here in Bacolod City. I hope you will find my work useful.

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are 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.

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


Program Listing


#include <iostream>
#include <conio.h>

 using namespace std;


 main() {


     char name[50];
     int age=0;
     char school[100];
     char course[100];
     float tuition=0.00;
     char reply;
   do {
     system("cls");
      cin.ignore();
     cout << "Enter Name of the Student :";
     gets(name);
     cout << "Enter the Age of the Student :";
     cin >> age;
     cin.ignore();
    cout << "Enter the course the Student :";
     gets(course);

     cout << "Enter the Tuition Fee of the Student :";
     cin >> tuition;

     cout << "\n\n";
     cout << "\n Name    : " << name;
     cout << "\n Age     : " << age;
     cout << "\n Course  : " << course;
     cout << "\n Tuition : " << tuition;
     cout << "\n\n";
     cout << "Do you want to continue y/n";
     reply=getch();
   } while (reply == 'Y' || reply == 'y');
     if (reply != 'Y' || reply !='y')
     {
         cout << "Quit";
         return 0;
     }
     system("pause");
 }



Saturday, August 25, 2018

CASAP-BACOLOD’S POMPERADA PUBLISHES NEW COMPUTER BOOKS


By: James U. Sy Jr.
Jake R. Pomperada, MAED-IT, a part time faculty at College of Arts & Science in Asia and the Pacific (CASAP)-Bacolod Campus, has published his fourth and fifth books entitled Introduction to JAVA Programming Rev. Ed. (2018) and Introduction to C# Programming (2018) through Mindshapers Co., Inc., which is based in Metro Manila.


Jake R. Pomperada, MAED-IT, holding two of his newest computer books (Contributed photo to James U. Sy Jr.).




Mindshapers Co., Inc. released Pomperada’s two new books in July and August 2018 respectively for distribution in Luzon, Visayas, and Mindanao.
Copies of Introduction to JAVA Programming Rev. Ed. and Introduction to C# Programming had been donated to Northern Negros College of Science and Technology (NONESCOST) in Sagay, St. Sebastian International School in Bacolod, and Technical University of the Philippines-Visayas (TUP-V) in Talisay.
His other previously published books were PHP with MySQL A Web Programming Language (as co-author with Mamerlo V. Abante, PhD, DIT, Marissa G. Chua, MA Coed, and Kevin M. San Jose, MSIT-CAR) (2015), Introduction to JAVA Programming (2016), and Fundamentals of JavaScript Programming (2016),
Copies of his first three books had been donated to Bacolod City Public Library, Carlos Hilado Memorial State College (CHMSC)-Talisay and Alijis Campuses, Colegio San Agustin-Bacolod (CSA-B), La Consolacion College-Bacolod (LCC-B), NONESCOST in Sagay, University of Negros Occidental-Recoletos (UNO-R), and University of St. La Salle (USLS). Our Lady of Fatime University in Antipolo has adapted Pomperada’s Java books.
Pomperada has earned 21 units in Doctor of Philosophy (Ph.D.), Major in Technology Management at the Carlos Hilado Memorial State College (CHMSC)-Talisay (2010-2011). He graduated Cum Laude in Master of Arts in Education, Major in Instructional Technology at La Consolacion College-Bacolod (LCC-B) on March 15, 2008. He has enrolled in Master of Information Technology at the Northern Negros State College of Science and Technology in July 2018.
Pomperada is a freelance programmer and web designer/developer since 1999, providing IT consulting, software development, and project management among others and has started the entrepreneurial venture Red Dragon Digital Hub in 2018. He is currently a Document Analyst / Software Quality Assurance Engineer at Channel Technologies Inc. Pomperada has previous worked as a Software Engineering Consultant / Application Development Team Lead at Accenture Inc. in Manila (2015-2017).
He has taught in a total of 10 schools - CASAP-Bacolod (2018), TUP-V (2013-2015), Megume Information Technology Center (2012-2013), Asian Business Institute of E-Technology (2011-2015), STI College Bacolod City (2011-2013), USLS (2009-2011), LCC-B (2007-2011), CHMSC-Talisay (2006-2009), CSA-B (2006), and Bacolod City College (BCC) (2005-2006).*
 

Thursday, August 23, 2018

Odd and Even Number Checker Using Switch Statement in C++

A very simple program that I wrote to show how to use Switch statement in C++ to check if the given number is an odd or even number. I am using Dev C++ in writing this program. 

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are 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.

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




Sample Program Output

Program Listing

// odd_even.cpp
// Author    : Mr. Jake R. Pomperada, BSCS,MAED-IT
// Date      : August 20, 2018   Monday
// Location  : Bacolod City, Negros Occidental Philippines.
// Website   : http://www.jakerpomperada.com
// Email     : jakerpomperada@jakerpomperada.com

#include <iostream>

using namespace std;


int main()
{
int num_input=0;
cout <<"\n";
cout << "\tOdd and Even Number Checker Using Switch Statement";
cout << "\n\n";
cout << "\tGive a Number : ";
cin >> num_input;
cout << "\n\n";
switch(num_input%2) 
    {
        case 0:
            cout <<"\tThe given number " <<num_input<< " is EVEN number.";
            break;
        case 1:
            cout <<"\tThe given number " <<num_input<< " is ODD number.";
            break;
    }
     
    cout <<"\n\n";
    cout << "\tEnd of Program";
    cout <<"\n\n";
}



Sunday, August 19, 2018

Positive and Negative Number Checker Using Nested If in C++

Here is a sample code that I wrote using C++ to show how nested if statement work I called this program Positive and Negative Number Checker Using Nested If in C++.

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are the following jakerpomperada@gmail.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.

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






Sample Program Output


Program Listing

// nested.cpp
// Author    : Mr. Jake R. Pomperada,BSCS,MAED-IT
// Date      : August 18, 2018  Saturday
// Location  : Bacolod City, Negros Occidental
// Website   : http://www.jakerpomperada.com
// Email     : jakerpomperada@jakerpomperada.com

#include <iostream>

using namespace std;

int main() 
{
    int number=0;
    
    cout << "\n\n";
cout << "\tPositive and Negative Number Checker";
cout << "\n\n";
    cout << "\tEnter an integer: ";
    cin >> number;

    if ( number > 0)
    {
        cout << "\n\n";
cout << "\tYou entered " << number << " a positive integer.";
    }
    else if (number < 0)
    {
        cout << "\n\n";
cout<<"\tYou entered " << number <<  " a negative integer.";
    }
    else
    {
        cout << "\n\n";
cout << "\tYou entered 0.";
    }
    cout << "\n\n";
cout << "\tEnd of Program";
cout << "\n\n";
return 0;
}




Year Level Checker Using If Statement in C++

Here is a sample program to ask the user to give the year level and then our program will determine what is the year level of the student using if statement in C++.

I am currently accepting programming work, it project, school 

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 in my website kindly contact me also in my email address also. Thank you.
My email address are the following jakerpomperada@gmail.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.

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



Program Listing

if.cpp

// 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";
}