Sunday, April 10, 2022

Addition of Three Numbers Using Functions in PHP

 A simple program to show how to create a function to compute the sum of three numbers using PHP 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




Program Listing

index.php

<?php

//creating a addition function in PHP
function addition($a,$b,$c)
{
$sum=$a+$b+$c;
echo "The sum of $a, $b and $c is $sum.";
}

echo "<br> Addition of Three Numbers Using Functions in PHP<br><br>";

//calling the addtion function

addition(1,2,3);

?>


Addition of Two Numbers in Go

Addition of Two Numbers in Go

 Machine Problem

Write a program that will ask the user to give two numbers and then the program will compute the sum of the two numbers and display the results on the screen

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





 Program Listing

/* addition.go
   Author   : Mr. Jake Rodriguez Pomperada,MAED-IT, MIT
   Date     :  March 20, 2021 Saturday  10:12 PM
   Location : Bacolod City, Negros Occidental
   Websites :www.jakerpomperada.comandwww.jakerpomperada.blogspot.com
   Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
 */

package main

import "fmt"

func main() {
var val1 int32
var val2 int32
var sum int32

fmt.Print("\n")
fmt.Print("\tAddition of Two Numbers in Go")
fmt.Print("\n\n")
fmt.Print("\tEnter two numbers: ")
fmt.Scanf("%d%d",&val1,&val2)
sum = (val1+val2)
fmt.Print("\n")
fmt.Println("\tThe sum of",val1, "and",val2 ,"is",sum,".")
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}


 

Saturday, April 9, 2022

Average Grade Solver in JavaScript

Average Solver in JavaScript

 A simple program to solve the average grade of the student in a class 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




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>Average Grade Solver</title>

    <style>

        * {

            box-sizing: border-box;

            margin: 0;

            padding: 0;

        }

        body {

            min-height: 100vh;

            display: flex;

            justify-content: center;

            align-items: center;

            background-color: #AAAF99;

            color: #000;

            font-family: sans-serif;

        }

        main {

            padding: 50px;

            border-radius: 10px;

            background-color: #fff;

            min-width: 500px;

        }

        h1 {

            margin-bottom: 5px;

            font-size: 28px;

            text-align: center;

        }

        h2 {

            margin-bottom: 30px;

            font-size: 20px;

            text-align: center;

        }

        .block {

            margin: 0 auto 12px;

            display: flex;

            align-items: center;


        }

        label {

            display: block;

            width: 35%;

            line-height: 40px;

            background-color: #2F4C58;

            color: #eee;

            text-align: center;

        }

        input {

            padding: 10px;

            width: 65%;

            font-size: 14px;

            border-radius: 0 5px 5px 0;

            border: 2px solid #000;

            outline: none;

        }

        .btnBlock {

            display: flex;

            width: 100%;

        }

        .btn {

            display: inline-block;

            padding: 15px;

            background-color: #63A583;

            color: #fff;

            outline: none; 

            border: none;

            cursor: pointer;

            width: 150px;

            width: 50%;

            font-size: 16px;

            text-decoration: none;

            text-align: center;

            transition: all .2s;

        }

        .btnReset {

            background-color: #6E93D6;

        }

        .btn:hover {

            opacity: 0.9;

        }

        .average {

            display: block;

            width: 100%;

            margin-top: 12px;

            padding: 20px 0;

            background-color: #2F4C58;

            font-size: 16px;

            text-align:center;

            color: #f3f3f3;

        }

        .hide {

            display: none;

        }

    </style>

</head>

<body>

    <main class="container">

        <h1>AVERAGE GRADE SOLVER</h1>

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

        <form action="" id="frmCalc">

            <div class="block">

                <label for="grade1">Prelim Grade:</label>

                <input type="number" min="1" max="100" id="grade1" autofocus required>

            </div>

            <div class="block">

                <label for="grade2">Midterm Grade:</label>

                <input type="number" min="1" max="100" id="grade2" required>

            </div>

            <div class="block">

                <label for="grade3">Final Grade:</label>

                <input type="number" min="1" max="100" id="grade3" required>

            </div>

            <div class="btnBlock">

                <button type="submit" class="btn">SUBMIT</button>

                <a href="" class="btn btnReset">RESET</a>

            </div>

            <div class="average hide"></div>

        </form>

    </main>


    <script>

        document.querySelector('#frmCalc').onsubmit  = (e) => {

            e.preventDefault()

            let ave = document.querySelector('.average'),

                arr = document.querySelectorAll(`[id*="grade"]`),

                total = 0;

            for(var i=0; i<arr.length; i++) total+= parseInt(arr[i].value)

            total = total/3

            ave.classList.remove('hide')

            ave.innerHTML = 'Your Average Grade is: '+total.toFixed(2)

        }

    </script>

</body>

</html>

Friday, April 8, 2022

Simple Password in C++

Simple Password in C++

 A simple password in C++ programming that I wrote I hope you will find useful.

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





Program Listing

#include <iostream>
#include <cstring>

using namespace std;

int main()
{
char password[]="123admin";
char pass[10];
cout <<"\n\n";
cout <<"\tSimple Password in C++";
cout <<"\n\n";
do
{
    cout <<"\n";
cout<<"\tGive your password : ";
cin.getline(pass,10);
if(strcmp(password,pass)!=0) {
cout <<"\n";
cout<<"\tInvalid Password. Try Again\n";
} else {
cout <<"\n";
cout<<"\tPassword Accepted. Welcome To The System.\n";
}
}while(strcmp(password,pass)!=0);
}

Thursday, April 7, 2022

Sum of Two Numbers in C# Using Console

Sum of Two Numbers in C# Using Console

 Machine Problem

Write a program that will ask the user to input two numbers and then the program will find the total sum of two numbers given by our user.

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





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            int a, b, sum;

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

            Console.Write("\tSum of Two Numbers in C# Using Console");

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

            Console.Write("\tEnter the first number : ");

            a = Convert.ToInt32(Console.ReadLine());

            Console.Write("\tEnter second number : ");

            b = Convert.ToInt32(Console.ReadLine());

            sum = a + b;

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

            Console.WriteLine("\tThe sum of {0} and {1} is {2}.", a, b, sum);

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

            Console.Write("\tEnd of Program");

            Console.ReadLine();

        }

    }

}


Bank Simulation in Java

Bank Simulation in Java

 Machine Problem


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





DOWNLOAD THE SOURCE CODE HERE


How To Run Java Programs in Visual Studio Code

Area of the Triangle Solver in Java

Area of the Triangle Solver in Java

 A program to solve the area of the triangle 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





Program Listing

// area_of_the_triangle.java
// Written By: Mr. Jake R. Pomperada, BSCS, MAED-IT
// July 9, 2015   Thursday
// Email Address:  jakerpomperada@gmail.com
//                 jakerpomperada@yahoo.com

import java.util.Scanner;
 
public class area_of_the_triangle {
 
   public static void main(String[] args) {
      Scanner input = new Scanner(System.in);
       
      char ch;
      double base_triangle = 0;
      double height_triangle = 0;
      double solve_area = 0;
 do {
      System.out.println();
      System.out.print("\tAREA OF THE TRIANGLE SOLVER ");
      System.out.println("\n\n");
      System.out.print("What is the length of base of the triangle : ");
      base_triangle = input.nextDouble();
 
      System.out.print("What is the length of height of triangle : ");
      height_triangle = input.nextDouble();
 
      solve_area = (base_triangle * height_triangle) / 2;
     
      System.out.println();
      System.out.println("The Area of Triangle is : " + solve_area + ".");
      System.out.println();
      System.out.print("\nDo you want to continue (Type y or n) : ");
      ch = input.next().charAt(0);                        
     } while (ch == 'Y'|| ch == 'y');  
      System.out.println();
      System.out.print("\t THANK YOU FOR USING THIS PROGRAM");
      System.out.println("\n\n");
      input.close();
   }
 
}