Saturday, April 9, 2022

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();
   }
 
}

Wednesday, April 6, 2022

Input Name in Scala

Input Name in Scala

 Machine Problem

Write a program that will ask the user to give first name, and last name and then the program will greet the user by displaying the first name, and last name of the user 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

/* Input_Name.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   November 11, 2021  8:21 PM Thursday
   Bacolod City, Negros Occidental
 */


import java.util.Scanner;

object Input_Name {

  def main(args: Array[String]) : Unit = {

    var input = new Scanner(System.in);

    print("\n\n");
    print("\tInput Name in Scala");
    print("\n\n");
    print("\tGive Your First Name : ");
    var first_name = input.nextLine();
    print("\tGive Your Last Name  : ");
    var last_name = input.nextLine();
   
    print("\n");
    print("\tHello " + first_name + " "  +  last_name + ". How are you? \n");
     print("\n");
    print("\tEND OF PROGRAM");
    print("\n\n");
  }
}

Sum,Product, Difference, and Quotient in C#

Sum,Product, Difference, and Quotient in C#

 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




Program Listing


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {


            int num1, num2, sum,product,difference, quotient;


            Console.WriteLine("\n");

            Console.Write("\tSum,Product, Difference, and Quotient in C#");

            Console.WriteLine("\n");

            Console.Write("\tEnter First Value  : ");

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

            Console.Write("\tEnter Second Value : ");

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

            

            sum = num1 + num2;

            product = num1 * num2;

            difference = num1 - num2;

            quotient = num1 / num2;


            Console.WriteLine("\n");

            Console.Write("\t{0} + {1} = {2}\n", num1, num2, sum);

            Console.Write("\t{0} * {1} = {2}\n", num1, num2, product);

            Console.Write("\t{0} - {1} = {2}\n", num1, num2,difference);

            Console.Write("\t{0} / {1} = {2}\n", num1, num2, quotient);

            Console.WriteLine("\n");

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

            Console.ReadKey();

        }

    }

}



Tuesday, April 5, 2022

Print Calendar in Python

Print Calendar in Python

 A program that will display the calendar 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 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


import calendar


# Calenday.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

print()
print("\tPrint Calendar in Python");
print()
year = int(input("\tEnter the year Number: "))
month = int(input("\tEnter the month Number: "))
print("\n")
print(calendar.month(year, month))
print("\tEnd of Program");