Friday, April 7, 2023

Odd and Even Number Using Pointers in C

 A program that will check if the number given is odd or even number using pointers in 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <stdio.h>


void check_odd_even(int *num) {

    if ((*num) & 1) {

        printf("%d is odd\n", *num);

    } else {

        printf("%d is even\n", *num);

    }

}


int main() {

    int num = 11;

    int *ptr = &num;

    

    check_odd_even(ptr);

    return 0;

}


Thursday, April 6, 2023

Kilometers To Miles Using Pointers in C++

Kilometers To Miles Using Pointers in C++

 A program that will ask the user to give distance in kilometers and then the program will convert the given kilometers into miles equivalent using pointers in 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>

#include <iomanip>


using namespace std;


void convert(double* km, double* mi) {

    // 1 kilometer = 0.621371 miles

    *mi = *km * 0.621371;

}


int main() {

    double km, mi;

    

    cout <<"\n\n";

    cout << "\tKilometers To Miles Using Pointers in C++\n\n";

    cout << "Enter kilometers: ";

    cin >> km;


    convert(&km, &mi);


    cout <<"\n\n";

    cout << fixed << setprecision(2);

    cout << km << " kilometers is equivalent to " << mi << " miles." << endl;


    return 0;

}




Tuesday, April 4, 2023

Average Quiz OOP in C++

Average Quiz OOP in C++

 A simple object oriented programming program to compute the average quiz of the students using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing


#include <iostream>

#include <iomanip>


#define MAX 3


using namespace std;


class Student {

private:

    string name[MAX];

    int q1[MAX];

    int q2[MAX];

    int q3[MAX];

    float ave(int a, int b, int c);

public:

    void getRec();

    void display();

};


void Student::getRec(){

int i;

for (i=0;i<MAX;i++){

    cout <<"Name: ";

    cin >> name[i];

    cout << "Input quiz 1: ";

    cin >> q1[i];

    cout << "Input quiz 2: ";

    cin >> q2[i];

    cout << "Input quiz 3: ";

    cin >> q3[i];

   }

}

void Student::display(){

int i;

float av;

system("cls");

cout <<"\n\n";

cout <<"\tAverage Quiz OOP in C++\n\n";

cout << " Name\tQuiz1\tQuiz2\tQuiz3\tAverage\tRemarks\n";


for (i=0;i<MAX;i++){

    av = ave(q1[i],q2[i],q3[i]);

    cout << fixed << setprecision(0);

    cout <<name[i]<<"\t"<<q1[i]<<"\t"<<q2[i]<<"\t"<<q3[i]<<"\t"<<av;


    if (av >= 75.0)

        cout <<"\tPassed.\n";

    else

        cout <<"\tFailed."<<endl;

    }

}

float Student::ave(int a, int b, int c){

   return ((a+b+c)/3.0);

}


int main(){

Student course;

course.getRec();

course.display();

}



Monday, April 3, 2023

Bubble Sort in Python

Bubble Sort in Python

 A program to show the concept of  bubble sort algorithm using Python 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.








Program Listing

def bubbleSort(arr): n = len(arr) for i in range(n): for j in range(0, n-i-1): if arr[j] > arr[j+1] : arr[j], arr[j+1] = arr[j+1], arr[j] arr = [-67, 336, 23, 15, 21, -11, 92] bubbleSort(arr) print("Sorted Array of Values") for i in range(len(arr)): print("%d" %arr[i])

Sunday, April 2, 2023

Asterisk Triangle Image in Pascal

Asterisk Triangle Image in Pascal

 A program to create an asterisk triangle image using Pascal 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing


program CenteredTriangle;


var

  rows, i, j, k: integer;


begin

  rows := 8;


  for i := 1 to rows do

  begin

    for j := 1 to rows - i do

    begin

      write(' ');

    end;

    for k := 1 to 2*i-1 do

    begin

      write('*');

    end;

    writeln;

  end;


  readln; // wait for user to press enter before closing program

end.



What is MySQL?

What is Data Analytics?

Display Even Numbers From 1 To 30 Using Listbox in C#

Display Even Numbers From 1 To 30 Using Listbox in C#

  A program that I wrote to display even numbers from 1 to 30 using listbox using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;


namespace WindowsFormsApplication1

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }


        private void Form1_Load(object sender, EventArgs e)

        {

            int val = 0;

            for (int i = 1; i <=30; i++)

            {

                val = i % 2;

                if (val == 0)

                {

                    listBox1.Items.Add(i);


                }

            }


        }


    }

}


    




Display Odd Numbers 1 To 20 Using ListBox in C#

Display Odd Numbers From 1 To 20 Using Listbox in C#

 A program that I wrote to display odd numbers from 1 to 20 using listbox using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { int val = 0; for (int i = 1; i <=20; i++) { val = i % 2; if (val != 0) { listBox1.Items.Add(i); } } } } }

Friday, March 31, 2023

Subtract Two Numbers Using Object Oriented Programming in C++

Subtract Two Numbers Using OOP in C++

 A program to subtract two numbers using object-oriented programming  approach using 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 at 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

#include <iostream> class Calculator { private: int num1, num2; public: void setNums(int n1, int n2) { num1 = n1; num2 = n2; } int subtract() { return num1 - num2; } }; int main() { Calculator calc; std::cout <<"\n\n"; std::cout << "\tSubtract Two Numbers Using OOP in C++\n\n"; calc.setNums(100, 50); std::cout << "\tThe result is " << calc.subtract() << "." <<std::endl; return 0; }

What is Information Technology?