Tuesday, February 7, 2023

Convert Days to Years, Weeks and Days in Ruby

 Machine Problem

Write a program to ask the user to give input number of days and convert it to years, weeks and days and display the result on the screen 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

# days.rb

# Author   : Jake Rodriguez Pomperada, BSCS,MAED-IT

# Date     : May 16, 2019   Thursday  3:17 PM

# Address  : Bacolod City, Negros Occidental

# Tools    : Eclipse IDE and Ruby Version 2.6.3

# Location : Bacolod City, Negros Occidental  

# Website  : http://www.jakerpomperada.com

# Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com

puts "\n\n"

print "\tConvert Days to Years, Weeks and Days in Ruby";

puts "\n\n"

print "\tHow Many Days :  ";

days = gets;

days = days.to_i;


# Conversion in this portion 

    years = (days / 365);   # Ignoring leap year 

    weeks = (days % 365) / 7;

    days  = days - ((years * 365) + (weeks * 7));


print "\n\n";

print "\t===== DISPLAY RESULT ====="

print "\n\n";

print "\tNumber of Years  : #{years}.\n"

print "\tNumber of Weeks  : #{weeks}.\n"

print "\tNumber of Days   : #{days}."

print "\n\n";

print "\tEND OF PROGRAM";

print "\n\n";


Count Vowels Using Pointers in C++

Sunday, February 5, 2023

Display a Text on the Screen Using a Function in C++

Display Text on The Screen Using a Function in C++

 A program to display a text on the screen 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 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 <iostream>


using namespace std;


void display_text()

{

cout <<"To Display a Text on the Screen.";

}


int main()

{

display_text();

}

How To Close A Form in Microsoft Visual Basic 6?

How To Clear a Text Box in Microsoft Visual Basic 6

Bubble Sort in Java

Bubble Sort in Java

 A program to demonstrate how to declare and use bubble sort algorithm 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 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

public class  Main {

    public static void bubble_sort(int[] arr) {

        int n = arr.length;

        for (int i = 0; i < n - 1; i++) {

            for (int j = 0; j < n - i - 1; j++) {

                if (arr[j] > arr[j + 1]) {

                    int temp = arr[j];

                    arr[j] = arr[j + 1];

                    arr[j + 1] = temp;

                }

            }

        }

    }


    public static void main(String[] args) {

        int[] arr = {-5, 134, 6, 450, 235, 15,51};

        

        System.out.println();

        System.out.println("\tBubble Sort in Java\n");

        

        System.out.println("UnSorted Values");

        for (int i = 0; i < arr.length; i++) {

            System.out.print(arr[i] + " ");

        }

        System.out.println();

        

        bubble_sort(arr);

        

        System.out.println("Sorted Values");

        for (int i = 0; i < arr.length; i++) {

            System.out.print(arr[i] + " ");

        }

    }

}


Pounds To Kilograms in Visual Basic 6

Pounds To Kilograms in Visual Basic 6

  A simple program to ask the user to give weight in pounds and then it will convert into kilograms equivalent using Microsoft Visual Basic 6 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

Private Sub Command1_Click()
If (txtPounds.Text = "") Then
MsgBox "Cannot Be Empty. Try Again", vbInformation, "Result"
txtPounds.SetFocus
Else
txtKilograms.Text = FormatNumber((Val(txtPounds.Text) * 0.453592), 2)
End If
End Sub

Private Sub Command2_Click()
txtPounds.Text = ""
txtKilograms.Text = ""
txtPounds.SetFocus
End Sub

Private Sub Command3_Click()
End
End Sub



Saturday, February 4, 2023

Divide Two Numbers in Rust

Divide Two Numbers in Rust

 Machine Problem

Write a program to ask the user to give two numbers and then the program will find the quotient of the two given numbers and display the results on the screen using Rust 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

/* diff.rs
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : January 12, 2023  Thursday   10:35 AM
   Address  : #25-31 Victoria Malaga Street Eroreco Subdivision 6100 Bacolod City, Negros Occidental Philippines
   Websites : www.jakerpomperada.com  and www.jakerpomperada.blogspot.com
   Facebook : https://www.facebook.com/jakerpomperada
   YouTube Channel :  http://www.youtube.com/jakepomperada
   Email            : jakerpomperada@gmail.com
   Mobile Number    : 09173084360  
   Telephone Number : (034) 433-5675
*/

use std::io;
use std::{i32};

fn main() {
       
     
         println!("\n");
         println!("Divide Two Numbers in Rust\n\n");

         // User will give the first value.

          println!("Give First Value : ");
         
          let mut var1 = String::new();
         
          io::stdin().read_line(&mut var1).expect("Unable to read entered data");

          println!("\n");

          // User will give the second value.

          println!("Give Second Value :  ");
          let mut var2 = String::new();
          io::stdin().read_line(&mut var2).expect("Unable to read entered data");

          // Converting string to integer
          let a: i32 = var1.trim().parse().ok().expect("Program only processes numbers, Enter number");
          let b: i32 = var2.trim().parse().ok().expect("Program only processes numbers, Enter number");

          // Performing division of two values variable a and variable b

          let divide = a/b;

          // Output of basic operations
          println!("\n");
          println!("The quotient between {} and {} is {}.",a,b, divide);
          println!("\n");
          println!("End of Program");
          println!("\n");
}  // End of Code

Input and Display a Number in C

Input and Display a Number in C

 A simple program to ask the user to give a number and then it will display the given number on the screen 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

#include <stdio.h>


int main()


{


   int num=0;


   printf("\n\n");

   printf("\tInput and Display a Number in C");

   printf("\n\n");

    

   printf("\tGive a Number : ");

   scanf("%d",&num); 

  

    printf("\n");

    printf("\tYour given number is %d.",num);

    printf("\n\n");  

    printf("\tEnd of Program");

    printf("\n\n");

    return 0;


}

Gallons To Liters in C

Gallons To Liters in C

  A program that will ask the user to give value in gallons and it will convert to liters using C programming approach.

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

#include <stdio.h>


int main()

{

   int no_gallons=0, no_liters=0;


   printf("\n\n");
   printf("\tGallons To Liters in C");
   printf("\n\n");
    
   printf("\tHow Many Gallons? : ");
   scanf("%d",&no_gallons); 


   no_liters = (no_gallons * 4); 

   
    printf("\n");
    printf("\t%d Gallons is equivalent to %d Liters.",no_gallons,no_liters);
    printf("\n\n");  
    printf("\tEnd of Program");
    printf("\n\n");
    return 0;

}

Friday, February 3, 2023

Divisible By 2 in C#

Divisible By 2 in C#

 A simple program to ask the user to give a number and then the program check if the given number is a divisible by 2 or not 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

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


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.


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

using System;

class Divisible {

  static void Main() {

     int num;

            Console.Write("Give a Number :");

            num = int.Parse(Console.ReadLine());

            if (num % 2 == 0)

            {

                Console.WriteLine("Entered Number " + num +  " is Divisible by 2. ");

            }

            else

            {

                Console.WriteLine("Entered Number " + num + " is Not Divisible by 2.",num);

            }

            Console.ReadLine();

  }

}

Thursday, February 2, 2023

US Dollar To Euro in Python

US Dollar To Euro in Python

  A simple program to convert to given US Dollar To a European Euro equivalent using Python 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()

print("\tUS Dollar To Euro in Python")

print()


us_dollar = float(input('\tEnter US Dollar Value : '))


euro = us_dollar *  0.91 


print()

print("\t$ %0.2f US Dollar\'s is equivalent to %0.2f European Euro\'s" %(us_dollar,euro))

print()

print("\tEnd of Program")

print()

US Dollar To British Pound in Python

US Dollar To British Pound in Python

  A simple program to convert to a given US Dollar into British Pound Sterling equivalent using Python 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()

print("\tUS Dollar To British Pound in Python")

print()


us_dollar = float(input('\tEnter US Dollar Value : '))


pound = us_dollar *  0.81 


print()

print("\t$ %0.2f US Dollar\'s is equivalent to %0.2f British Pound\'s" %(us_dollar,pound))

print()

print("\tEnd of Program")

print()