Sunday, April 9, 2023

String Palindrome Using Pointers in C

 A program that will ask the user to give a string and then the program will check if the given string is a palindrome or not a palindrome 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>

#include <string.h>

#include <ctype.h>


int main() {

   char str[100];

   char *begin_ptr, *end_ptr;

   int len, is_palindrome = 1;

   

     

   printf("\n\n");

   printf("\tString Palindrome Using Pointers in C\n\n");

   printf("\tEnter a string: ");

   gets(str);


   len = strlen(str);

   begin_ptr =  toupper(str);

   end_ptr = toupper(str) + len - 1;


   while (toupper(begin_ptr) < toupper(end_ptr)) {

      if (toupper(*begin_ptr) != toupper(*end_ptr)) {

         is_palindrome = 0;

         break;

      }

      begin_ptr++;

      end_ptr--;

   }

   

   printf("\n\n");

   if (is_palindrome)

      printf("\t%s is a palindrome.", str);

   else

      printf("\t%s is not a palindrome.", str);

   printf("\n\n");

   printf("\tEnd of Program\n\n");

   return 0;

}


Saturday, April 8, 2023

Display Odd numbers Using Arrays in Java

Display Odd numbers using arrays in Java

 A program to display odd numbers from 1 to 10 using Arrays in Java 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

//display odd numbers using arrays in java


public class Main {

    public static void main(String[] args) {

        int[] numbers = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

        System.out.println("Odd numbers:");

        for (int i = 0; i < numbers.length; i++) {

            if (numbers[i] % 2 != 0) {

                System.out.println(numbers[i]);

            }

        }

    }

}


Friday, April 7, 2023

Even numbers 1 to 20 using list box in Microsoft Visual Basic 6

Even numbers 1 to 20 using list box in visual basic 6

 A program that I wrote using Microsoft Visual Basic 6 to display the even numbers from 1 to 20 using list box.

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

Private Sub Form_Load() Dim i As Integer 'Loop through list box and add even numbers to new list box For i = 1 To 20 If i Mod 2 = 0 Then 'Check if number is even List1.AddItem i End If Next End Sub

Odd and Even Number Using Pointers in C

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#