Sunday, June 12, 2022

Celsius To Fahrenheit Using Scala

 A simple program asks the user to give a temperature in celsius and then the program will convert the given Celsius temperature in Fahrenheit using Scala 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

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


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


/* Celsius_Fahrenheit.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   November 13, 2021  3:21 PM  Saturday
   Bacolod City, Negros Occidental
 */


import java.util.Scanner;

object Celsius_Fahrenheit {

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

    var input = new Scanner(System.in);

    print("\n\n");
    print("\tCelsius To Fahrenheit Using Scala");
    print("\n\n");
    print("\tEnter Celsius Temperature  : ");
    var celsius = input.nextDouble();

    var  fahrenheit = (celsius * 9 / 5 + 32);

    print("\n");
    print("\t===== DISPLAY RESULTS =====");
    print("\n\n");
    print("\tCelsius Temperature    : " + f"$celsius%5.2f \u00B0C");
    print("\n\n");
    print("\tFahreneit Temperature  : " + f"$fahrenheit%5.2f \u00B0C");
    print("\n\n");
    print("\tEND OF PROGRAM");
    print("\n\n");
  }
}

Saturday, June 11, 2022

Visiting Vito Church in Sagay City

Yearly Compounded Interest in C#

 A simple program to compute the yearly compounded interest on a  loan 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

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


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;
using System.Windows.Forms;

namespace CompoundInterestGUI
{
  public partial class MainForm : Form
  {
    public MainForm()
    {
      InitializeComponent();
    }

    private void btnReset_Click(object sender, EventArgs e)
    {
      txtAmount.Text = txtInterestRate.Text = String.Empty;
      spnYears.Value = spnYears.Minimum;
      dataGridView1.Rows.Clear();
    }

    private void btnCalc_Click(object sender, EventArgs e)
    {
      try
      {
        double interestRate = double.Parse(txtInterestRate.Text);
        double amount = double.Parse(txtAmount.Text);
        int years = (int)spnYears.Value;
        double interest;

        for (int year = 1; year <= years;year++)
        {
          interest = amount * interestRate / 100;
          amount += interest; 
          dataGridView1.Rows.Add(year, amount, interest);
          
        }
      }
      catch (Exception ex)
      {
        MessageBox.Show(ex.ToString());
      }
    }

    private void MainForm_Load(object sender, EventArgs e)
    {
      txtAmount.Focus();
    }
  }
}

Friday, June 10, 2022

US Dollar To Philippines Peso Using Currency Filter in AngularJS

US Dollar To Philippines Peso Using Currency Filter in AngularJS

 Machine Problem

Write a program that uses a currency filter that will accept US Dollar value and then the program will convert the US Dollar value into Philippine Peso equivalent, 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 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

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


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

<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : August 1, 2021  10:06 AM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
<head>
  <title>US Dollar To Philippines Peso Using Currency Filter in AngularJS</title>
</head>
<style>
body {
  font-family: arial;
  font-size: 20px;
  font-weight: bold;
}
</style>
<script type="text/javascript" src="angular.min.js">
</script><br>
<h3>
US Dollar To Philippines Peso Using Currency Filter in AngularJS
</h3>
<div ng-app="">
  <form>
  <table border="0" cellspacing=10>
 <tr>
  <td>Enter US Dollar Value </td>
  <td><input type="number"  ng-model="us_dollar"
    ng-init="us_dollar=0"></td>
  </tr>
</table>
  </form>
  <span>
The US Dollar(s) value is $ {{us_dollar}} the Philippine
Peso(s) equivalent is {{ us_dollar * 52.50 | currency : "PHP "}} </span>
</div>
</body>
</html>

Thursday, June 9, 2022

Yearly Compounded Interest in C

Yearly Compounded Interest in C

 A simple program to compute the yearly compounded interest in the 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

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


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

// compounded_interest.c

// Jake Rodriguez Pomperada, MAED-IT, MIT

// www.jakerpomperada.com and www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <stdio.h>


int main()

{

     double interest=0.00,amount = 0.00;

     double interest_rate = 0.00;

     int year=0,years = 0;

     

     printf("\n\n");

     printf("\tYearly Compounded Interest in C");

     printf("\n\n");

     printf("\tGive Amount Loaned   : ");

     scanf("%lf",&amount);

     printf("\tGive Interest Rate   : ");

     scanf("%lf",&interest_rate);

     printf("\tGive Number of Years : ");

     scanf("%d",&years);

     printf("\n\n");

     for (year = 1; year <= years; year++)

     {

         interest = amount * interest_rate / 100;

         amount += interest;

         

    printf("\tAfter year(s) %d  PHP %5.2lf amount   Interest:  PHP  %5.2lf.\n"

           ,year,amount,interest);

        

      }

     printf("\n\n");

     printf("\tEnd of Program");

     printf("\n\n");

}




Wednesday, June 8, 2022

Leap Year in JavaScript

Leap Year in JavaScript

 A leap year program that I wrote using JavaScript programming language. I hope you will find my work 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


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>Leap Year in JavaScript</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>LEAP YEAR IN JAVASCRIPT</h1>
        <h2>Jake R. Pomperada, MAED-IT, MIT</h2>
        <form action="" id="frmCalc">
            <div class="block">
                <label for="val_num">Give a Year</label>
                <input type="number" id="val_num" autofocus required>
            </div>
           
            <div class="btnBlock">
                <button type="submit" class="btn">SUBMIT</button>
                <a href="" class="btn btnReset">RESET</a>
            </div><br>
            <div class="display_result hide"></div>
        </form>
    </main>

    <script>

       document.querySelector('#frmCalc').onsubmit  = (e) => {
            e.preventDefault()
            let i=0, chk=0;
            let display = document.querySelector('.display_result'),
               arr = document.getElementById("val_num");
                num_year = 0;
                num_year = parseInt(arr.value);
                 
 //three conditions to find out the leap year
    if ((0 == num_year % 4) && (0 != num_year % 100) || (0 == num_year % 400)) {
        result = num_year  + " is a Leap Year.";
    } else {
        result = num_year  + " is Not a Leap Year.";
    }

            display.classList.remove('hide');
            display.innerHTML = "<h1>" + result + "</h1>";
      }
    </script>
</body>
</html>



Tuesday, June 7, 2022

Yearly Compounded Interest in Java

Yearly Compounded Interest in Java

 A simple program to compute the yearly compounded interest 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 Compounded_Interest {

public static void main(String[] args) {
// TODO Auto-generated method stub
double amount=0.00;
     double interestRate = 0.00;
     int years = 0;
     
     Scanner input = new Scanner(System.in);
        
        System.out.println("\n");
        System.out.print("\tYearly Compounded Interest in Java");
        System.out.println("\n");
        System.out.print("\tEnter Amount Loaned    : ");
        amount =input.nextDouble();
        System.out.print("\tEnter Yearly Interest  : ");
        interestRate = input.nextDouble();
        System.out.print("\tEnter Number of Years  : ");
        years = input.nextInt();

     for (int year = 1; year <= years; year++)
     {
         double interest = amount * interestRate / 100;
         amount += interest;
         System.out.printf("After year %d\n\tAmount: %.2f\tInterest: %.2f\n", year, amount, interest);

     }
     
     input.close();
}

}

Automatic Teller Machine in C

Automatic Teller Machine in C

 A simple automatic teller machine using a 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 Listing

#include <stdio.h>


float balance = 0; 

int anotherTransaction=0; 

int amountToWidthdraw=0; 

int amountToDeposit=0; 


void Main_Menu(){

  int choice=0; 

  

  printf("\n");

  printf("Automatic Teller Machine in C\n\n");

  printf("[1] Withdraw Money\n"); 

  printf("[2] Deposit Money\n"); 

  printf("[3] Check Balance\n");

  printf("[4] Quit Program\n\n\n");

  printf("Select Your Choice :" );

  scanf("%d",  &choice); 

  printf("\n");

  

  switch(choice){

    case 1:

   

    printf("Please enter amount to withdraw: "); 

    scanf("%d", &amountToWidthdraw); 

    if(amountToWidthdraw > balance){

      printf("There is no insuffient funds in your account"); 

      

      printf("\n\nDo you want another transaction?\nPress 1 to proceed and 2 to exit\n\n"); 

      scanf("%d", &anotherTransaction); 

      if(anotherTransaction == 1){

       

       Main_Menu();

      }

    } else {

      

      balance = balance - amountToWidthdraw; 

      

      printf("You have withdrawn %d and your new balance is %5.2f ", amountToWidthdraw, balance);

      

      

      printf("\n\nDo you want another transaction?\nPress 1 to proceed and 2 to exit\n\n"); 

      scanf("%d", &anotherTransaction); 

      if(anotherTransaction == 1){

      

        Main_Menu();

      }

      else {

      Main_Menu();

  }

      

    }

    break; 

    

    case 2:

      

    

    printf("Please enter amount to deposit: "); 

    scanf("%d", &amountToDeposit); 


    

    balance = amountToDeposit + balance; 

    

    printf("Thank you for depositing, new balance is: %5.2f", balance); 

    

        printf("\n\nDo you want another transaction?\nPress 1 to proceed and 2 to exit\n\n"); 

      scanf("%d", &anotherTransaction); 

      if(anotherTransaction == 1){

       

        Main_Menu();

      } else {

      Main_Menu();

  }

    

    break; 

    

    case 3:

    

    

    printf("Your bank balance is: %5.2f", balance); 

    

   

      printf("\n\nDo you want another transaction?\nPress 1 to proceed and 2 to exit\n\n"); 

      scanf("%d", &anotherTransaction); 

      if(anotherTransaction == 1){

      Main_Menu();

      } else {

      Main_Menu();

  }

    

    break;

    

    case 4:

      printf("\n");

      printf("\tThank you for using this software.");

      break;

  }

  

}




int main(){

  

  

  Main_Menu();

  return 0;

}

Sunday, June 5, 2022

Kilometers To Miles in Visual Basic 6

Kilometers To Miles in Visual Basic

 A simple program to convert the given distance in kilometers to miles equivalent using Microsoft Visual Basic 6.

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) * 0.621371), 2)

End If

End Sub


Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text1.SetFocus


End Sub


Private Sub Command3_Click()

End

End Sub