Area of a Circle in Ruby

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

print "\tArea of a Circle in Ruby\n\n"

print "\tGive the radius of the circle: "

radius = gets.chomp.to_f


area = Math::PI * radius ** 2


display = format('%.2f',area)


print "\n"

puts "\tThe area of the circle is #{display}."

print "\n"

print "\tEnd of Program"

Area of a Circle Using Pointers in C++

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

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


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> #include <iomanip> // include iomanip library for setprecision() using namespace std; int main() { float radius=0.00, area=0.00; float *ptr; cout <<"\n"; cout << "\tArea of a Circle Using Pointes in C++\n\n"; cout << "\tGivethe radius of the circle: "; cin >> radius; ptr = &radius; // pointer points to the address of radius area = 3.14159 * (*ptr) * (*ptr); // dereference pointer to get the value of radius and calculate area cout <<"\n\n"; cout << fixed << setprecision(2); // set output to two decimal places cout << "\tThe area of the circle is: " << area << endl; cout <<"\n\n"; cout <<"\tEnd of Program"; cout <<"\n"; return 0; }

Area of a Circle Using a Function in C#

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

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


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 double Area_Solve(double radius) {

        const double PI = 3.14159; // defining the value of pi

        return PI * radius * radius; // calculating the area of the circle

    }


    static void Main(string[] args) {

        double radius, area;

 

        Console.WriteLine();

        Console.WriteLine("\tArea of a Circle Using a Function in C#");

        Console.WriteLine();

        Console.Write("\tGive the radius of the circle: ");

        radius = Convert.ToDouble(Console.ReadLine());


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

        area =  Area_Solve(radius);

        

        

        Console.WriteLine();

       Console.WriteLine("\tThe area of the circle with radius {0} is {1:0.00}."

       , radius, area);

        Console.WriteLine();

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

        Console.WriteLine();

        

    }

}


Subtract Two Numbers Using Java

 A simple program to subtract two given numbers 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

/******************************************************************************


Welcome to GDB Online.

GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,

C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.

Code, Compile, Run and Debug online from anywhere in world.


*******************************************************************************/

public class Main

{

public static void main(String[] args) {

int num1 = 200;

        int num2 = 50;

        int difference = num1 - num2;

        System.out.println("The difference between " + num1 + " and " + num2 + " is " 

        + difference + ".");


}

}


Subtract Two Numbers Using Functions and Pointers in C++

 A program that will ask the user to give two numbers and then the program will compute the difference of two given numbers using a function and pointers 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; void subtract(int num1, int num2, int* result) { *result = num1 - num2; } int main() { int num1, num2; int result; cout <<"\n\n"; cout << "\tSubtract Two Numbers Using Functions and Pointers in C++"; cout <<"\n\n"; cout << "\tEnter the first number: "; cin >> num1; cout <<"\n\n"; cout << "\tEnter the second number: "; cin >> num2; subtract(num1, num2, &result); cout <<"\n\n"; cout << "\tThe Result: " << result << endl; cout <<"\n\n"; cout << "\tEnd of Program"; cout <<"\n\n"; return 0; }

Point of Sale in C

 A simple point of sale program that I wrote using C programming language.

 A program that will add the sum of two numbers using C# and WPF thank you to my friend and fellow software engineer Tom for this code for sharing to us.

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 <stdio.h> int main() { char itemName[200]; int quantity=0.00; float price, totalAmount = 0; printf("\n\n"); printf("\tPoint of Sale in C\n\n"); printf("\tEnter item name: "); gets(itemName); printf("\tEnter quantity: "); scanf("%d", &quantity); printf("\tEnter price: "); scanf("%f", &price); totalAmount = quantity * price; printf("\n\n**********PRINTED INVOICE**********************\n\n"); printf("\tItem Name: %s\n", itemName); printf("\tTotal Quantity: %d\n", quantity); printf("\tPrice per item: $%5.2f\n\n", price); printf("\tTotal amount: PHP %5.2f\n\n", totalAmount); printf("************************************************\n"); printf("\n\n"); printf("\tEnd of Program\n"); return 0; }

Add Two Numbers Using C# and WPF

 A program that will add the sum of two numbers using C# and WPF thank you to my friend and fellow software engineer Tom for this code for sharing to us.

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.Windows;


namespace AddTwoNumbers

{

  /// <summary>

  /// Interaction logic for MainWindow.xaml

  /// </summary>

  public partial class MainWindow : Window

  {

    public MainWindow ()

    {

      InitializeComponent();

    }

// Add Button Code

    private void AddButton_Click (object sender, RoutedEventArgs e)

    {

      int num1 = int.Parse(txtFirstNum.Text);

      int num2 = int.Parse(txtSecondNum.Text);

      int result = num1 + num2;


      txtResult.Text = result.ToString();

    }


// Clear Button Code

    private void btnClear_Click (object sender, RoutedEventArgs e)

    {

      txtResult.Text = txtFirstNum.Text = txtSecondNum.Text = "";

    }

  }

}


Word Count in Pascal

 A program that will ask the user to give a sentence or a series of strings. Our program will count the number of words that can be found on the given sentences or a series of strings 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 WordCount;


var

  sentence: string;

  count: integer;

  i: integer;

  inWord: boolean;


begin

  Writeln;

  Write('Word Count in Pascal');

  writeln;

  writeln('Enter a sentence:');

  readln(sentence);

  

  count := 0;

  inWord := false;

  

  for i := 1 to length(sentence) do

  begin

    if sentence[i] in ['a'..'z', 'A'..'Z', '0'..'9'] then

    begin

      if not inWord then

      begin

        inWord := true;

        count := count + 1;

      end;

    end

    else

    begin

      inWord := false;

    end;

  end;

  

  writeln('The sentence "', sentence, '" contains ', count, ' words.');

  

  readln; 

end.