Tuesday, June 28, 2022

Simple Payroll Program in C# Using OOP

 A simple payroll program that I wrote using object oriented programming approach 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;


namespace Simple_Payroll_OOP

{

  // a simple payroll program that will ask the user number of days work 

  // and rate per day and compute the gross pay of an employee using C# 

  // oop approach in programming

  class Program

  {

    static void PrintHeader()

    {


      Console.WriteLine("\t===========================================");

      Console.WriteLine("\tSimple Payroll Program in C# Using OOP");

      Console.WriteLine("\t===========================================");

      Console.WriteLine();

    }


    static void Main(string[] args)

    {

      Payroll payRoll = new Payroll();


      PrintHeader();

      while(true)

      {

        Console.Write("\tEnter number of days worked (0 to quit): ");

        int numDays = ConsoleInput.ReadInt();

        if(numDays == 0)

          break;

        Console.Write("\tEnter pay rate: ");

        double payRate = ConsoleInput.ReadDouble();

        double netPay = payRoll.CalcGrossPay(numDays, payRate);

        Console.WriteLine("\tNet pay: " + netPay);

      }

      SayGoodBye();

      Console.ReadKey();

    }


    private static void SayGoodBye()

    {

      Console.WriteLine("\n");

      Console.WriteLine("\tThank You For Using This Program");

     }

  }


  class Payroll

  {

    public double CalcGrossPay(int daysWorked, double ratePerDay)

    {

      return daysWorked * ratePerDay;

    }

  }

}


Monday, June 27, 2022

How To Check Your Microsoft Windows Version

Odd and Even Number Using Function in C

Odd and Even Number Using Function in C

 A simple program that I wrote to ask the user to give any number and then the program will check if the given number is an odd and even number using functions and bitwise operator 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 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

/* odd_even_number.c

Jake Rodriguez Pomperada, MAED-IT, MIT

www.jakerpomperada.com and www.jakerpomperada@gmail.com

jakerpomperada@gmail.com

Bacolod City, Negros Occidental

*/


#include <stdio.h>



/**

 * Function to check even or odd

 * Returns 1 is num is even otherwise 0

 * if odd number. Using bitwise operator

*  in a function to check for odd and even

*  numbers

 */

int isEven_Number(int num)

{

    return !(num & 1);

}



int main()

{

    int val_num=0;

    

    

    printf("\n\n");

    printf("\tOdd and Even Number Using Function in C\n");

    printf("\n");

    printf("\tGive any number: ");

    scanf("%d", &val_num);

    

    

    printf("\n\n");


      if(isEven_Number(val_num))

    {

        printf("\tThe given number %d is even number.",val_num);

    }

    else

    {

         printf("\tThe given number %d is odd number.",val_num);

    }

    printf("\n\n");

    printf("\tEnd of Program");

    printf("\n");

    return 0;

    

}



Sunday, June 26, 2022

US Dollar To Philippine Peso Using Function in C++

US Dollar To Philippine Peso Using Function in C++

 A simple program to ask the user to give us dollar money value and convert it into Philippine peso equivalent 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

#include <iostream>
#include <iomanip>

double us_peso(double us_value)
{
return(us_value * 53.50);
}

int main()
{
double us_dollar=0.00;
double compute=0.00;
std::cout <<"\n\n";
std::cout <<"\tUS Dollar To Philippine Peso Using Function in C++";
std::cout <<"\n\n";
std::cout <<"\tGive Value in US Dollar : ";
std::cin >> us_dollar;
compute = us_peso(us_dollar);
std::cout <<"\n\n";
std::cout << std::fixed << std::setprecision(2) 
<< "\tThe equivaluent of  US Dollar $" <<us_dollar << 
" to Philippine Peso is PHP " << compute;
std::cout <<"\n\n";
std::cout <<"\tEnd of Program";
std::cout <<"\n\n";
}



Saturday, June 25, 2022

While Loop Statement in Pascal

While Loop Statement in Pascal

 A simple program that I wrote to demonstrate how to declare and use while loop statement in Pascal 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

Program While_Loop;

uses
  WinCrt;  { Allows Writeln, Readln, cursor movement, etc. }

var  x: integer;

begin
   x := 1;
   writeln;
   write('While Loop Statement in Pascal');
   writeln;
   Writeln;
   while  x <= 10  do
   
   begin
      writeln('The value of x: ', x);
      x := x + 1;
   end;
   writeln;
   write('End of Program');
   writeln;
end.



Friday, June 24, 2022

Increment and Decrement Operators in Go

Increment and Decrement Operators in Go

 A program that demonstrate increment and decrement operators in Go 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


package main

import "fmt"

func main() {

    fmt.Printf("\n")
    fmt.Printf("\tIncrement and Decrement Operators in Go\n\n")
    var x = 10

    fmt.Printf("\tInitial Value of X  : %d\n", x)
    x++

    fmt.Printf("\n")
    fmt.Printf("\tValue of X after Increment : %d\n\n", x)

    x--
    fmt.Printf("\tValue of X after Decrement : %d\n", x)
    fmt.Printf("\n")
    fmt.Printf("\tEnd of Program")
    fmt.Printf("\n")
}

Calculate Area and Circumference of Circle in Go

Calculate Area and Circumference of Circle

 Machine Problem

Write a program to solve area and circumference of the circle using Go 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

/* circle.go
   Author : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date   :  March 21, 2021Sunday  9:18 AM
Websites :www.jakerpomperada.com   and    www.jakerpomperada.blogspot.com
   Emails : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
*/

package main

import "fmt"

 const PI float64 = 3.14 

func main(){
    var rad float64
    var ci float64
    var area float64
    fmt.Print("\n")
    fmt.Print("\tCalculate Area and Circumference of Circle")
    fmt.Print("\n\n")
    fmt.Print("\tEnter radius of Circle : ")
    fmt.Scanln(&rad)
    area = PI * rad * rad 
    fmt.Print("\n")
    fmt.Print("\tArea of Circle is : ")
    fmt.Printf("%0.2f ",area)
    ci = 2 * PI * rad
    fmt.Print("\n\n")
    fmt.Print("\tCircumference of Circle is : ")  
    fmt.Printf("%0.2f ",ci)
    fmt.Print("\n\n")
    fmt.Print("\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")
}


Thursday, June 23, 2022

Sum of All Odd Numbers in Java

Sum of All Odd Numbers in Java

 Machine Problem

Write a program that uses a loop to compute the sum of all odd digits of an input.  (For example, if the given number is  6741, the sum would be 7 + 1 = 8.)

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


test.java

package demo;


//Write a program that uses a loop to compute the sum of all odd digits of an input. 

//(For example, if the given number is  6741, the sum would be 7 + 1 = 8.)


import java.util.Scanner;

 

public class Test

{

public static void main(String[] args) {

    

    Scanner input = new Scanner(System.in);

    

    int display_result = 0;

    

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

    System.out.print("\tSum of All Odd Numbers in Java");

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

    System.out.print("\tGive a Number : ");

    int num = input.nextInt();

    int y = num;

    

    while (num > 0) {

        int digit = num % 10;

        if (digit % 2 != 0) {

     display_result += digit;

   }

        num /= 10;

}

    System.out.println();

    System.out.printf("\tThe Sum of %d odd digits is %d", y, display_result);

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

    System.out.print("\tEnd of Program");

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

    input.close();

}

}


Addition of Three Numbers in TypeScript

Addition of Three Numbers Using TypeScript

 A simple program to add the sum of three numbers using TypeScript 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

addition.ts

/* addition.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   June 23, 2022  12:06 PM  Thursday
   Bacolod City, Negros Occidental
*/

var a=10; var b=20; var c=30;

var addition = (a+b+c);

console.log();
console.log("Addition of Three Numbers in TypeScript.\n");
console.log("The sum of " + a + ", " + b + ", and " + c + " is " + addition + ".\n");
console.log("\tEnd of Program\n");

Sum and Difference of Two Numbers in TypeScript

Sum and Difference of Two Numbers in TypeScript

 A program that I wrote that will compute the sum and product of two numbers using TypeScript 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

sum_product.ts

var a=5; var b= 3;

var sum = (a+b);
var subtract = (a-b);


console.log("\n\n");
console.log("The sum of " + a + " and " + b + " is " + sum + ".\n");
console.log("The difference between " + a + " and " + b + " is " + subtract + ".\n");