Wednesday, April 12, 2023

Square a Number Using C#

 A program that will ask the user to give a number and then the program will square the given number by the user 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;


class Square {

  static void Main() {

    

    Console.Write("\n\n");

    Console.Write("\tSquare a Number in C#\n\n");

    Console.Write("Enter a number to square: ");

   string input = Console.ReadLine();


  int number = Convert.ToInt32(input);

  int squared = number * number;

  

  Console.Write("\n\n"); 

    Console.WriteLine("The square of {0} is {1}.", number, squared);


  }

}

Tuesday, April 11, 2023

Odd and Even Number in Kotlin

Odd and Even Number in Kotlin

 A program that will ask the user to give a number and then the program will check if the given number is odd or even using Kotlin 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

import java.util.* fun main() { val reader = Scanner(System.`in`) println("\n\n") println("Odd and Even Numbers in Kotlin\n") print("Enter a number: ") val num = reader.nextInt() if (num % 2 == 0) println("$num is even number.") else println("$num is odd number.") }

Monday, April 10, 2023

Count Down Timer in Visual Basic 6

Count Down Timer in Microsoft Visual Basic 6

 A program to show how to create count down timer using Microsoft Visual Basic 6 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

Option Explicit Private m_StopTime As Date Private Sub cmdStart_Click() Dim fields() As String Dim hours As Long Dim minutes As Long Dim seconds As Long fields = Split(txtDuration.Text, ":") hours = fields(0) minutes = fields(1) seconds = fields(2) m_StopTime = Now m_StopTime = DateAdd("h", hours, m_StopTime) m_StopTime = DateAdd("n", minutes, m_StopTime) m_StopTime = DateAdd("s", seconds, m_StopTime) tmrWait.Enabled = True End Sub Private Sub tmrWait_Timer() Dim time_now As Date Dim hours As Long Dim minutes As Long Dim seconds As Long time_now = Now If time_now >= m_StopTime Then Me.WindowState = vbMaximized tmrWait.Enabled = False lblRemaining.Caption = "0:00:00" Else seconds = DateDiff("s", time_now, m_StopTime) minutes = seconds \ 60 seconds = seconds - minutes * 60 hours = minutes \ 60 minutes = minutes - hours * 60 lblRemaining.Caption = _ Format$(hours) & ":" & _ Format$(minutes, "00") & ":" & _ Format$(seconds, "00") End If End Sub

What is a Software Developer?

Sunday, April 9, 2023

String Palindrome Using Pointers in C

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;

}