Sunday, August 26, 2018

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

Wednesday, August 15, 2018

Quotient and Remainder Solver in C++

Here is a sample program to ask the user to give dividend and divisor. It will compute the Quotient and the Remainder 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

//  quotient.cpp
// Author    : Mr. Jake R. Pomperada,BSCS,MAED-IT
// Date     : August 14, 2018   Tuesday
// Location : Bacolod City, Negros Occidental
// Website : http://www.jakerpomperada.com

#include <iostream>

using namespace std;

int main()
{
int divisor=0, divident=0, quotient=0, remainder=0;
cout << "\n\n";
    cout << "\tQuotient and Remainder Solver";
    cout << "\n\n";
    cout << "\tGive Dividend : ";
    cin >> divident;
    cout << "\tGive Divisor  : ";
    cin >> divisor;
    
    quotient = (divident / divisor);
    remainder = (divident % divisor );
    
    cout << "\n\n";
    cout << "\tQuotient  = " << quotient <<"\n";
    cout << "\tRemainder = " << remainder;
    cout << "\n\n";
    cout << "\tEnd of Program";
  cout << "\n\n";
}

Swap Two Numbers in C++

Here is the code that I wrote to ask the user to give two numbers and then our program will swap the arrangement of the two numbers 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 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


/ Author    : Mr. Jake R. Pomperada,BSCS,MAED-IT
// Date     : August 14, 2018   Tuesday
// Location : Bacolod City, Negros Occidental
// Website : http://www.jakerpomperada.com

#include <iostream>

using namespace std;

int main() {

 int a=0,b=0, temp=0;

 cout << "\n\n";
 cout << "\tSwap Two Numbers";
 cout << "\n\n";
 cout << "\tGive two integers: ";
 cin >> a >> b;

 cout <<"\n\n";
 cout <<"\tBefore Swapping";
 cout <<"\n\n";
 cout << "\ta = " << a << " and " << b <<"\n";

 temp = a;
 a = b;
 b = temp;

 cout <<"\n\n";
 cout <<"\tAfter Swapping";
 cout <<"\n\n";
 cout << "\ta = " << a << " and " << b <<"\n";
 cout << "\n\n";
 cout << "\tEnd of Program";
 cout << "\n\n";
 }


Find the Power of a Number in C++

In this article I would like to share with you a sample program that will ask the user to give a base and exponent and then our program will compute the power of the number 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 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



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

#include <iostream>
#include <iomanip>
#include <math.h> // Used for pow() function

using namespace std;

int main()
{
    double base=0.00, expo=0.00, power=0.00;
    
    cout << "\n\n"; 
    cout << "\tFind the Power of a Number";
cout << "\n\n";
     
    cout << "\tEnter base: ";
    cin >>base;
    cout <<"\n";
cout <<"\tEnter exponent: ";
    cin >> expo;

    /* Calculates base^expo */
    power = pow(base, expo);
    
    cout << setprecision(2) << fixed;
    cout << "\n\n";
    cout <<"\tTHE RESULT";
    cout <<"\n\n";
    cout << "\t"<<base << " ^ " <<expo <<" = " << power;
    cout << "\n\n";
    return 0;
}