Sunday, June 5, 2022

ASCII Table in Java

ASCII Table in Java

 A simple program to display the ASCII characters using 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 in 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

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


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



public class ASCII_Table {

public static void main(String[] args) {
// TODO Auto-generated method stub
  final int MIN_CHAR = 32;
    final int MAX_CHAR = 127;
    final int CHARS_PER_LINE = 8;
    
    System.out.println("\t===================\n");
    System.out.println("\tAscii Table in Java");
    System.out.println("\t===================\n");
    
    for (int i = MIN_CHAR; i <= MAX_CHAR; i++) {
      System.out.printf("%2c  ", (char)i);
      if (i % CHARS_PER_LINE == CHARS_PER_LINE-1)
        System.out.println();

}
}
}

Saturday, June 4, 2022

Addition of Five Numbers in C++

Addition of Five Numbers in C++

 A simple program asks the user to give five numbers and then the program will compute the sum of the five numbers using arrays 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 in 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

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


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 Listings

addition.cpp

#include <iostream>

int items[5], total_sum=0;

int main(){
    std::cout <<"\n";
    std::cout <<"\tAddition of Five Numbers in C++";
    std::cout <<"\n\n";
      for (int a=0; a<5; a++) {
    std::cout << "\tEnter value in item no. "
         << a+1 << " : ";
    std::cin >> items[a];
     total_sum+=items[a];
      }
   std::cout <<"\n";
   std::cout <<"\tThe Total Sum is "
        << total_sum << ".";
   std::cout <<"\n\n";
   std::cout <<"\tEnd of Program";
   std::cout <<"\n";
}



Automatic Teller Machine in Java

Automatic Teller Machine in Java

 A simple automatic teller machine program is written 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 in 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

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


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.Scanner;

public class ATM_Bank
{
    public static void main(String args[] )
    { 
        int balance = 0, withdraw, deposit;
        Scanner input = new Scanner(System.in);
        while(true)
        {
        System.out.println();
        System.out.println("Automatic Teller Machine in Java");
        System.out.println();
            System.out.println("[1] Withdraw");
            System.out.println("[2] Deposit");
            System.out.println("[3] Check Balance");
            System.out.println("[4] Quit Program");
            System.out.println();
            System.out.print("Select Your Option : ");
            int n = input.nextInt();
            switch(n)
            {
                case 1:
                System.out.print("Enter money to be withdrawn:");
                withdraw = input.nextInt();
                if(balance >= withdraw)
                {
                    balance = balance - withdraw;
                    System.out.println("Please collect your money");
                }
                else
                {
                    System.out.println("Insufficient Balance");
                }
                System.out.println("");
                break;
 
                case 2:
                System.out.print("Enter money to be deposited:");
                deposit = input.nextInt();
                balance = balance + deposit;
                System.out.println("Your Money has been successfully depsited");
                System.out.println("");
                break;
 
                case 3:
                System.out.println("Balance : "+balance);
                System.out.println("");
                break;
 
                case 4:
                System.exit(0);
            }
            
        }
       
    }
}

Friday, June 3, 2022

Kilograms To Pounds in Visual Basic 6

Kilograms To Pounds in Visual Basic 6

 A simple program to ask the user to give weight in kilograms and then it will convert into pounds equivalent 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 in 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

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


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 Command1_Click()
' Written By Jake Rodriguez Pomperada, MAED-IT, MIT
' www.jakerpomperada.com  and www.jakerpomperada.blogspot.com
' jakerpomperada@gmail.com


If (Text1.Text = "") Then
MsgBox "Cannot Be Empty. Try Again", vbInformation, "Result"
Text1.SetFocus
Else
Text2.Text = FormatNumber((Val(Text1.Text) * 2.20462262), 2)
End If
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus

End Sub

Private Sub Command3_Click()
End
End Sub


Thursday, June 2, 2022

Kilogram To Pounds Using JavaScript

Kilograms To Pounds in JavaScript

 A program that will ask the user to give a kilogram value and then the program will convert into pounds equivalent using JavaScript programming

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 in 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

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


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

index.htm

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Convert Kilograms To Pounds Using JavaScript</title>

    <style>

        * {

            box-sizing: border-box;

            margin: 0;

            padding: 0;

        }

        body {

            background-color: #d8dede;

            background-image: linear-gradient(315deg, #d8dede 0%, #e5bdf6 74%);

            min-height: 100vh;

            display: flex;

            justify-content: center;

            align-items: center;

            font-family: sans-serif;

        }

        form {

            background: #fff0f0;

            /* background: rgba(255, 255, 255, 0.4); */

            padding: 30px;

            border-radius: 10px;

        }

        h1, h2 {

            text-align: center;

        }

        h1 {

            text-transform: uppercase;

            margin-bottom: 5px;

            font-size: 30px;

        }

        h2 {

            margin-bottom: 20px;

            color: #ff9800;

            font-size: 20px;

            font-weight: 400;

        }

        label,

        input,

        button {

            display: block;

            font-size: 14px;

            outline: none;

        }

        label {

            padding: 5px 0;

        }

        .btn-group {

            display: flex;

        }

        input {

            border: 1px solid #ccc;

            border-right: none;

            border-radius:  3px 0 0 3px;

            width: 100%;

            padding: 10px;

        }

        button {

            padding: 10px 14px;

            background-color: #3D5A80;

            border: none;

            border-radius:  0 3px 3px 0;

            color: #fefefe;

            cursor: pointer;

        }

        .output {

            margin-top: 10px;

            background-color: #EE6C4D;

            padding: 15px;

            color: #fefefe;

            text-align: center;

            max-width: 330px;

            word-wrap: break-word;

            border-radius: 3px;

        }

        .hidden {

            display: none;

        }

    </style>

</head>

<body>

    <form action="" method="post">

        <h1>Convert<br>Kilogram to Pounds<br>Using JavaScript</h1>

        <h2>Jake R. Pomperada, MAED-IT, MIT</h2>

        <label for="txtNumber">Enter a number to convert:</label>

        <div class="btn-group">

            <input type="number" name="txtNumber" id="txtNumber" autofocus required>

            <button type="submit">Convert</button>

        </div>

        <div class="output hidden"></div>

    </form>

    

    <script>

        document.querySelector('form').onsubmit  = (e) => {

            e.preventDefault()


            let number = parseInt(document.querySelector('#txtNumber').value),

                output = document.querySelector('.output')

            

            result = number * 2.20462

            output.classList.remove("hidden")

            output.innerHTML = 'Pounds Value: ' + result.toFixed(2);

        }

    </script>

</body>

</html>


Wednesday, June 1, 2022

Feet To Centimeter in JavaScript

Feet To Centimeter in JavaScript

 A simple program asks the user to give feet value and then the program will convert the given feet into centimeter equivalent using JavaScript 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 in 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

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


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

index.htm

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Convert Feet to Centimeter Using JavaScript</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            background-color: #d8dede;
            background-image: linear-gradient(315deg, #d8dede 0%, #e5bdf6 74%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: sans-serif;
        }
        form {
            background: #fff0f0;
            /* background: rgba(255, 255, 255, 0.4); */
            padding: 30px;
            border-radius: 10px;
        }
        h1, h2 {
            text-align: center;
        }
        h1 {
            text-transform: uppercase;
            margin-bottom: 5px;
            font-size: 30px;
        }
        h2 {
            margin-bottom: 20px;
            color: #ff9800;
            font-size: 20px;
            font-weight: 400;
        }
        label,
        input,
        button {
            display: block;
            font-size: 14px;
            outline: none;
        }
        label {
            padding: 5px 0;
        }
        .btn-group {
            display: flex;
        }
        input {
            border: 1px solid #ccc;
            border-right: none;
            border-radius:  3px 0 0 3px;
            width: 100%;
            padding: 10px;
        }
        button {
            padding: 10px 14px;
            background-color: #3D5A80;
            border: none;
            border-radius:  0 3px 3px 0;
            color: #fefefe;
            cursor: pointer;
        }
        .output {
            margin-top: 10px;
            background-color: #EE6C4D;
            padding: 15px;
            color: #fefefe;
            text-align: center;
            max-width: 330px;
            word-wrap: break-word;
            border-radius: 3px;
        }
        .hidden {
            display: none;
        }
    </style>
</head>
<body>
    <form action="" method="post">
        <h1>Convert<br>Feet to Centimeter<br>Using JavaScript</h1>
        <h2>Jake R. Pomperada, MAED-IT, MIT</h2>
        <label for="txtNumber">Enter a number to convert:</label>
        <div class="btn-group">
            <input type="number" name="txtNumber" id="txtNumber" autofocus required>
            <button type="submit">Convert</button>
        </div>
        <div class="output hidden"></div>
    </form>
    
    <script>
        document.querySelector('form').onsubmit  = (e) => {
            e.preventDefault()

            let number = parseInt(document.querySelector('#txtNumber').value),
                output = document.querySelector('.output')
            
            result = number/0.032808
            output.classList.remove("hidden")
            output.innerHTML = 'Centimer Value: ' + result.toFixed(2);
        }
    </script>
</body>
</html>

Decimal To Hexadecimal in JavaScript

Decimal To Hexadecimal in JavaScript

  A program asks the user to give a decimal number and then the program will convert the given decimal number into hexadecimal equivalent using JavaScript 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 in 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

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


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

index.htm

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Convert Decimal to Hexadecimal Using JavaScript</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            background-color: #b1bfd8;
            background-image: linear-gradient(315deg, #b1bfd8 0%, #6782b4 74%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: sans-serif;
        }
        form {
            background: #ccc;
            padding: 30px;
            border-radius: 10px;
        }
        h1, h2 {
            text-align: center;
        }
        h1 {
            text-transform: uppercase;
            margin-bottom: 5px;
            font-size: 30px;
        }
        h2 {
            margin-bottom: 20px;
            color: #2196f3;
            font-size: 20px;
            font-weight: 400;
        }
        label,
        input,
        button {
            display: block;
            font-size: 14px;
            outline: none;
        }
        label {
            padding: 5px 0;
        }
        .btn-group {
            display: flex;
        }
        input {
            border: 1px solid #ccc;
            border-right: none;
            border-radius:  3px 0 0 3px;
            width: 100%;
            padding: 10px;
        }
        button {
            padding: 10px 14px;
            background-color: #4caf50;
            border: none;
            border-radius:  0 3px 3px 0;
            color: #fefefe;
            cursor: pointer;
        }
        .output {
            margin-top: 10px;
            background-color: #607d8b;
            padding: 15px;
            color: #fefefe;
            text-align: center;
            max-width: 330px;
            word-wrap: break-word;
            border-radius: 3px;
        }
        .hidden {
            display: none;
        }
    </style>
</head>
<body>
    <form action="" method="post">
        <h1>Convert<br>Decimal to Hexadecimal<br>Using JavaScript</h1>
        <h2>Jake R. Pomperada, MAED-IT, MIT</h2>
        <label for="txtNumber">Enter a number to convert:</label>
        <div class="btn-group">
            <input type="number" name="txtNumber" id="txtNumber" autofocus required>
            <button type="submit">Convert</button>
        </div>
        <div class="output hidden"></div>
    </form>
    
    <script>
        document.querySelector('form').onsubmit  = (e) => {
            e.preventDefault()

            let number = parseInt(document.querySelector('#txtNumber').value),
                output = document.querySelector('.output')
            
            result = number.toString(16)
            output.classList.remove("hidden")
            output.innerHTML = 'Hexadecimal Value: ' + result
        }
    </script>
</body>
</html>