Thursday, March 9, 2023

Payroll Program Using Scala

 Machine Problem

Write a program to ask the user to give the employee's name, number of days' work, and rate per day. The program will compute the salary of the employee by displaying the employee's name, and their salary 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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


/* Payroll_Program.scala

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

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

   jakerpomperada@gmail.com

   November 09, 2021  10:02 PM Tuesday

   Bacolod City, Negros Occidental

 */



import java.util.Scanner;


object Payroll_Program {


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


    var input = new Scanner(System.in);


    print("\n\n");

    print("\tPayroll Program Using Scala");

    print("\n\n");

    print("\tEnter Employee's Name : ");

    var emp_name = input.nextLine();


    print("\tEnter Days Worked     : ");

    var days = input.nextDouble();


    print("\tEnter Rate Per Day    : ");

    var rate = input.nextDouble();


    var salary = (days * rate);


    print("\n");

    print("\tEmployee's Name       :  " + emp_name + "\n");

    print("\n");

    print("\tThe Gross Salary      : PHP  " + f"$salary%5.2f" )

    print("\n\n");

    print("\tEND OF PROGRAM");

    print("\n\n");

  }

}


Addition of Two Numbers in Kotlin

Addition of Two Numbers in Kotlin

 A program that will ask the user to give two numbers and then the program will compute the sum of two numbers using Kotlin 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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

fun main() { print("\n\n") print("\tAddition of Two Numbers in Kotlin\n\n") // Prompt user to enter first number print("\tEnter the first number: ") val num1 = readLine()!!.toInt() // readLine() returns a String, so we need to convert it to a Integer print("\n") // Prompt user to enter second number print("\tEnter the second number: ") val num2 = readLine()!!.toInt() // Add the two numbers and print the result val sum = num1 + num2 println() println("\tThe sum of $num1 and $num2 is $sum") println() print("\tEnd of Program") println() }

Wednesday, March 8, 2023

Kilometers To Miles in Pascal

Kilometers To Miles in Pascal

 A program to ask the user to give distance in kilometers and then the program will convert it into miles equivalent using 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 KilometersToMiles; var kilometers, miles: real; begin writeln; writeln; write('Kilometers To Miles in Pascal'); writeln; writeln; write('Enter distance in kilometers: '); readln(kilometers); miles := kilometers / 1.609; // 1 mile = 1.609 kilometers writeln('Distance in miles: ', miles:0:2); writeln; write('End of Program'); writeln; readln; end.

Tuesday, March 7, 2023

Julianna's Class Participation

Centimeters To Meters and Kilometers in C#

Centimeters To Meters and Kilometers in C#

  A program that will ask the user length in centimeters and then our program will convert it into meters and kilometers 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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; class Program { static void Main(string[] args) { Console.Write("\n\n"); Console.Write("\tCentimeters To Meters and Kilometers in C#\n\n"); Console.Write("\tEnter a length value in centimeters: "); double centimeters = double.Parse(Console.ReadLine()); double meters = centimeters / 100; // Convert centimeters to meters double kilometers = centimeters / 100000; // Convert centimeters to kilometers Console.Write("\n\n"); Console.WriteLine("\tThe Length in meters: " + meters.ToString("F2")); Console.WriteLine("\tThe Length in kilometers: " + kilometers.ToString("F2")); Console.Write("\n\n"); Console.Write("\tEnd of Program\n\n"); } }

Monday, March 6, 2023

Centimeters To Meters and Kilometers in Java

Centimeters To Meters and Kilometers in Java

 A program that will ask the user length in centimeters and then our program will convert it into meters and kilometers 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 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 CentimeterConverter {

   public static void main(String[] args) {

       double centimeters, meters, kilometers;

       Scanner input = new Scanner(System.in);


       // Input centimeters

       System.out.println();

       System.out.print("\tCentimeters To Meters and Kilometers in Java\n\n");

       System.out.print("Enter length in centimeters: ");

       centimeters = input.nextDouble();


       // Convert to meters and kilometers with two decimal places

       meters = centimeters / 100.0;

       kilometers = centimeters / 100000.0;


       // Output results with two decimal places

       System.out.printf("%.2f centimeters is equal to %.2f meters.%n", centimeters, meters);

       System.out.printf("%.2f centimeters is equal to %.2f kilometers.%n", centimeters, kilometers);

   }

}


Sunday, March 5, 2023

Area of a Circle Using Functions in Pascal

Area of the Circle Using a Function in Pascal

 A program that will ask the user to give radius and then the program compute the area of the circle using a function 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 AreaOfCircle;



function CalculateArea(radius: Double): Double;

const

  PI = 3.14159; // defining the value of pi

begin

  CalculateArea := PI * radius * radius; // calculating the area of the circle

end;


var

  radius, area: Double;


begin

  writeln;

  write('Area of a Circle Using Functions in Pascal');

  writeln;

  Write('Enter the radius of the circle: ');

  ReadLn(radius);


  // calling the function to calculate the area of the circle

  area := CalculateArea(radius);


  WriteLn('The area of the circle with radius ', radius:0:2, ' is ', area:0:2, '.');

  writeln;

  write('End of Program');

  writeln;

end.


Addition of Three Numbers Using OOP in C++

Addition of Three Numbers Using OOP in C++

A simple program to demonstrate the concept of object oriented programming to add the sum of three numbers 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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> using namespace std; class Calculator { private: int num1; int num2; int num3; public: Calculator(int n1, int n2, int n3) { num1 = n1; num2 = n2; num3 = n3; } int add() { return num1 + num2 + num3; } }; int main() { // Create an object of the Calculator class Calculator calc(10, 20, 30); // Call the add() method to add the three numbers int result = calc.add(); // Print the result cout << "The sum of the three numbers is: " << result << endl; return 0; }


Saturday, March 4, 2023

Sum and Product of Two Numbers in Ruby

Sum and Product of Two Numbers in Ruby

 A program that will ask the user to give two numbers and then the program will compute the sum and products of the two given numbers by user using the Ruby 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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

print "Sum and Product of Two Numbers in Ruby\n\n" # get input from user print "Enter the first number: " num1 = gets.chomp.to_i print "Enter the second number: " num2 = gets.chomp.to_i # calculate sum and product sum = num1 + num2 product = num1 * num2 # print results puts "The sum of #{num1} and #{num2} is #{sum}." puts "The product of #{num1} and #{num2} is #{product}."

Thursday, March 2, 2023

Login Program in Pascal

 A simple login program that I wrote using 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 Login; var username, password: string; begin writeln; write('Login Program in Pascal'); writeln; writeln; write('Give your username: '); readln(username); write('Give your password: '); readln(password); writeln; if (username = 'admin') and (password = 'admin') then writeln('Login successful!') else writeln('Incorrect username or password. Please try again.'); readln; end.

Kilograms To Pounds in Pascal