Saturday, March 26, 2022

Kilometers To Miles in AngularJS

Kilometers To Miles Using AngularJS

 Machine Problem 

Write a program that uses ng-model directive that will accept distance in kilometers from the user and then the program will convert the given kilometer distance value into miles distance 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 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 the 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

  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

  Date     : July 26, 2021  Monday   3:00 PM

  Place    : Bacolod City, Negros Occidental

  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head>

  <title>Kilometers To Miles Using ng-model in AngularJS</title>

</head>

<style>

body {

  font-family: arial;

  font-size: 25px;

  font-weight: bold;

}

</style>

<script type="text/javascript" src="angular.min.js">

</script><br>

<div ng-app ng-init="kilometers=0">

  <form>

  <table border="0" cellspacing=10>

  <tr>Kilometers To Miles Using ng-model in AngularJS</tr>

  <tr>

  <td>Enter Kilometer(s) Value </td>

  <td><input type="number"  ng-model="kilometers" ></td>

  </tr>

</table>

  </form>

  <p>{{kilometers}} Kilometer(s) is equivalent to 

     {{(kilometers * 0.621371192) | number:2}} Mile(s).</p> 

</div>

</body>

</html>



Area of a Square in C

Area of the Square in C

 A program that will compute the area of the square 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 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 the 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>
 
int main() {
  
   int side_value=0, area=0;
  
   printf("\n\n");
   printf("\tArea of the Square in C");
   printf("\n\n");
   printf("\tGive the Length of Side of the Square : ");
   scanf("%d", &side_value);
 
   area = (side_value * side_value);
   
   printf("\n");
   printf("\tArea of Square : %d", area);
   printf("\n\n");
   printf("\tEnd of Program");
   printf("\n");
   return (0);
}


Thursday, March 24, 2022

Full Time and Part Time Employee's Payroll System Using Java Version 1.0

Full Time and Part Time Employee's Payroll System Using Java Version 1.0

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

RunEmployee.java

import java.text.DecimalFormat;
import java.util.Scanner;

public class RunEmployee
{
    private static DecimalFormat df2 = new DecimalFormat("#.00");

    public static void main(String[] args) 
    {
        Scanner input = new Scanner(System.in);
        System.out.println();
        System.out.print("\tEnter Name : ");
        String emp_name =input.nextLine();
        System.out.print("\tPress F for Full Time or P for Part Time : ");
        char job_criteria =input.next().charAt(0);
        char select = Character.toUpperCase(job_criteria);
        System.out.println();

        if (select == 'F') {
            System.out.print("\t------ Full Time Employee ----- ");
            System.out.println();
            System.out.print("\tEnter Basic Pay :  ");
            double basic_pay = input.nextDouble();
            FullTimeEmployee emp = new FullTimeEmployee();
            emp.setName(emp_name);
            emp.setMonthlySalary(basic_pay);
            System.out.println("\n");
            System.out.println("\tName    :  " + emp.getName());
            System.out.println("\tWage    :  " + df2.format(emp.getMonthlySalary()));

            System.out.println("\n");

        } 
        else if (select == 'P') 
        {
            System.out.print("\t------ Part Time Employee ----- ");
            System.out.println("\n");
            System.out.print("\tEnter Rate Per Hour  and No. of Hours Worked  Seperated By Space     :  ");
            double rate_per_hour = input.nextDouble();
            int no_hours_work2 = input.nextInt();

            PartTimeEmployee emp = new PartTimeEmployee();
            emp.setName(emp_name);
            emp.setRatePerHour(rate_per_hour);
            emp.setHoursWorked(no_hours_work2);
            System.out.println("\tName    :  " + emp.getName());
            System.out.println("\tWage    :  " + df2.format(emp.getWage()));

            System.out.println("\n");
        } else {
            System.out.println("\n");
            System.out.print("\tInvalid Option. Please Try Again");
        }

        System.out.print("\tEnd of Program");
        System.out.println("\n");
        input.close();

    }
}


Employee.java

class Employee
{
    private String name;

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
}


PartTimeEmployee.java



class PartTimeEmployee extends Employee
{
    private double ratePerHour;
    private int hoursWorked;
    private double wage;

    public void setWage()
    {
        wage = hoursWorked * ratePerHour;
    }

    public double getWage()
    {
        setWage();
        return wage;
    }

    public void setRatePerHour(double rate)
    {
        ratePerHour = rate;
    }

    public void setHoursWorked(int hours)
    {
        hoursWorked = hours;
    }
}


FullTimeEmployee.java

class FullTimeEmployee extends Employee { private double monthlySalary; public void setMonthlySalary(double salary) { monthlySalary = salary; } public double getMonthlySalary() { return monthlySalary; } }


Wednesday, March 23, 2022

Area of the Circle Solver Using Scala

Area of the Circle Solver Using Scala

 Machine Problem

Write a program to ask the user to give the radius of the circle,  and then our program will compute the area of the circle.

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 the channel?


GCash Account


Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Progam Listing

/* area_cicle.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   November 2, 2021   9:26 PM  Tuesday
   Bacolod City, Negros Occidental
 */


import java.util.Scanner;

object AreaCircle {

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

    var input = new Scanner(System.in);

    print("\n\n");
    print("\tArea of the Circle Solver Using Scala");
    print("\n\n");
    print("\tEnter the Radius of the Circle : ");

    var radius = input.nextDouble();


    var area = 3.14 * radius * radius

    print("\n");
    print("\tThe Area of Circle is " + f"$area%2.2f" )
    print("\n\n");
    print("\t END OF PROGRAM");
    print("\n\n");
  }
}

Addition of Three Numbers Using Pointers in C

Addition of Three Numbers Using Pointers in C

 Machine Problem

Write a program that will ask the user to give three numbers and then the program will compute the total sum of the three numbers using pointers and display the result 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 the 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>
 
int main()
{
   int first=0, second=0,third=0; 
   int *a,*b,*c;
   int sum=0;
   printf("\n\n");
   printf("\tAddition of Three Numbers Using Pointers in C");
   printf("\n\n");
   printf("\tGive Three Numbers : ");
   scanf("%d%d%d",&first,&second,&third);
   a = &first;
   b = &second;
   c = &third;
  sum = *a + *b + *c;
  printf("\n\n");
  printf("\t===== DISPLAY RESULTS =====");
  printf("\n\n");
  printf("\tThe total sum of %d, %d and %d is %d."
          ,first,second,third,sum);
  printf("\n\n");
  printf("\tEND OF PROGRAM");
  printf("\n\n");
 }

Tuesday, March 22, 2022

Count Vowels, Consonants, Digits and White Space in C++

Count Vowels, Consonants, Digits and White Space in C++

 A simple program to ask the user to give a sentence and then the program will count the vowels, consonants, digits, and white space 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 the channel?


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>

#include <string>


using namespace std;



main()  {

    string sentence;

    int NumChars=0, VowelCount=0, ConsonantCount=0;

    int whitespace=0, digits=0;

    

    cout << "\n\n";

    cout << "\tCount Vowels, Consonants, Digits and White Space in C++";

    cout << "\n\n";

    cout << "\tEnter a Sentence :=> ";

    getline(cin,sentence);


    NumChars = sentence.length();


    for (int i=0; i < NumChars; i++) {

          switch(sentence.at(i)) {


              case 'a' : case 'A' :

              case 'e' : case 'E' :

              case 'i' : case 'I' :

              case 'o' : case 'O' :

              case 'u' : case 'U'  : VowelCount++;

                                     break;

              case 'b' : case 'B' :

              case 'c' : case 'C' :

              case 'd' : case 'D' :

              case 'f' : case 'F' :

              case 'g' : case 'G' :

              case 'h' : case 'H'  :


              case 'j' : case 'J'  :

              case 'k' : case 'K' :

              case 'l' : case 'L' :

              case 'm' : case 'M' :

              case 'n' : case 'N' :

              case 'p' : case 'P'  :


              case 'q' : case 'Q' :

              case 'r' : case 'R' :

              case 's' : case 'S' :

              case 't' : case 'T' :

              case 'w' : case 'W'  :


              case 'x' : case 'X' :

              case 'y' : case 'Y' :

              case 'z' : case 'Z' :  ConsonantCount++;

                                     break;

              case ' '  : whitespace++;

                           break;

              case '1' : case '2' :

              case '3' : case '4' :

              case '5' : case '6' :

              case '7' : case '8' :

              case '9' : case '0'  : digits++;




          }

    }

    cout << "\n\n";

    cout << "\t===  SUMMARY OF REPORTS =====\n";

    cout << "\n\n";

    cout << "\tNumber of Vowels      :=> " << VowelCount << ".\n";

    cout << "\tNumber of Consonants  :=> " << ConsonantCount << ".\n";

    cout << "\tNumber of Digits      :=> " << digits << ".\n";

    cout << "\tNumber of WhiteSpace  :=> " << whitespace << ".\n";

    cout << "\n\n";

    system("PAUSE");

}

Monday, March 21, 2022

Print 1 To 10 Using For Loop in C#

Print 1 To 10 Using For Loop in C#

 A simple program to print 1 to 10 using For Loop statement 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 the channel?


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {


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

            Console.WriteLine("\tPrint 1 To 10 Using For Loop in C#");

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

            Console.Write("\t");

            for (int a = 1; a <= 10; a++)

            {

                Console.Write(" {0} ",a);

             } 

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

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

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

            Console.ReadKey();

        }

    }

}





Power a Numbers in C#

Power a Number in C#

 A program to ask the user to give base and exponent number and then the program will compute the power of a number 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 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

Thank you very much for your support.





Program Listing


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            int baseNumber, expNumber, result = 1;


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

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

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

            Console.Write("\tGive Base Number    : ");

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

            Console.Write("\tGive Exponent Number : ");

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



            while (expNumber != 0)

            {

                result *= baseNumber;

                --expNumber;

            }


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

            Console.WriteLine("\tThe Result : {0}", result);

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

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

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

            Console.ReadLine();

        }

    }

}