Celsius To Fahrenheit in Java

Write a program using Java programming language to convert temperature from Celsius to Fahrenheit degree.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing


/**

 * @author Jake Rodriguez Pomperada, MAED-IT, MIT

 * jakerpomperada@gmail.com

 * www.jakerpomperada.com

 * Bacolod City, Negros Occidental

 * September 30, 2020  Wednesday

 */



import java.util.Scanner;

import java.math.RoundingMode;

import java.text.DecimalFormat;


public class Celsius_Fahrenheit {

private static DecimalFormat df2 = new DecimalFormat("#.##");


public static void main(String[] args) {

// TODO Auto-generated method stub


Scanner input = new Scanner(System.in);

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

    System.out.print("\t\tCelsius To Fahrenheit in Java");

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


      System.out.print("\tTemperature in Celsius : ");

          double celsius = input.nextDouble();


        /* Convert Celsius to Fahrenheit */

         double Fahrenheit = celsius * (9f / 5) + 32;

        

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

        System.out.println("\tThe " + celsius + " Degree Celsius is equal to "

        + df2.format(Fahrenheit) + " in Fahrenheit.");

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

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

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



}


}


Fahrenheit To Celsius in Java

 I will show you how to write a program using the Java programming language to convert temperature from Fahrenheit to Celsius degree.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing


/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * September 30, 2020  Wednesday
 */



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


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

public static void main(String[] args) {
// TODO Auto-generated method stub
  Scanner input = new Scanner(System.in);
    System.out.println("\n");
    System.out.print("\t\tFahrenheit To Celsius in Java");
    System.out.println("\n");

      System.out.print("\tTemperature in Fahrenheit: ");
        double fahrenheit = input.nextDouble();

        double  celsius =(( 5 *(fahrenheit - 32.0)) / 9.0);
        
        System.out.println("\n");
        System.out.println("\tThe " + fahrenheit + " Degree Fahrenheit is equal to "
        + df2.format(celsius) + " in Celsius");
         System.out.print("\n\n");
System.out.println("\tEnd of Program");
        System.out.println("\n\n");
}

}


Tuesday, September 29, 2020

Fibonacci Numbers in Java

Write a program  that will ask the user to give a number and then program will generate the fibonacci sequence.  The number is said to be in a Fibonacci series if each subsequent number is the sum of the previous two 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 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program  Listing

package Fibonacci;

import java.util.Scanner;

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * September 25, 2020  Friday
 */

public class Fibonacci_Numbers {

public static void main(String[] args) {
// TODO Auto-generated method stub
    int n, a = 0, b = 0, c = 1;
    
        Scanner input = new Scanner(System.in);
        
        System.out.println("\n");
    System.out.print("\t\tFibonacci Numbers in Java");
    System.out.println("\n");
        System.out.print("\tEnter a Number : ");
        n = input.nextInt();
        System.out.println("\n");
        System.out.print("\tThe Fibonacci Series :");
        for(int i = 1; i <= n; i++)
        {
            a = b;
            b = c;
            c = a + b;
            System.out.print(a+" ");
        }
        
    System.out.print("\n\n");
System.out.println("\tEnd of Program");
        System.out.println("\n\n");

}

}


Division of Two Numbers in Java

 In this article, I will show you how write a Java program to divide two numbers and print 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program  Listing

/* Divide_Two.java
 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT
 * September 29, 2020
 * www.jakerpomperada.blogspot.com
 * www.jakerpomperada.com
 * jakerpomperada@gmail.com
 * Bacolod City, Negros Occidental
 */

import java.util.Scanner;

public class Divide_Two {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
        
        System.out.println("\n");
        System.out.print("\tDivide of Two Integers in Java");
        System.out.println("\n");
        System.out.print("\tGive First Value  : ");
        int firstInt = in.nextInt();
        System.out.print("\tGive Second Value : ");
        int secondInt = in.nextInt();

        System.out.println();
        System.out.printf("\tThe divide of two integers is %d%n"
        , firstInt / secondInt,".");
        System.out.println();
        System.out.println("\tEnd of Program");
        System.out.println("\n");

}

}

Difference of Two Integers in Java

 In this article I will show you how write a program that asking the user to give two integer numbers and then the program will compute the difference of the two integer 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Program Listing

/* difference.java
 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT
 * September 27, 2020
 * www.jakerpomperada.blogspot.com
 * www.jakerpomperada.com
 * jakerpomperada@gmail.com
 * Bacolod City, Negros Occidental
 */

import java.util.Scanner;

public class difference {

    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        
        System.out.println("\n");
        System.out.print("\tDifference of Two Integers in Java");
        System.out.println("\n");
        System.out.print("\tGive First Value  : ");
        int firstInt = in.nextInt();
        System.out.print("\tGive Second Value : ");
        int secondInt = in.nextInt();

        System.out.println("\n");
        System.out.printf("\tDifference of two integers: %d%n", firstInt - secondInt);
        System.out.println();
        System.out.println("\tEnd of Program");
        System.out.println("\n");
    }
}


Sum and Product of Two Numbers in C

 Create and Design a program that will ask the user to give two numbers and then the program will compute the sum and product of the given numbers 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Program Listing

/* add_product.c
   Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
   Date     : September 25, 2020   Friday 3:32 PM
   Location : Bacolod City, Negros Occidental
   Tool     : Dev C++ Version 5.11
   Websites : http://www.jakerpomperada.com
              http://www.jakerpomperada.blogspot.com 
   Email    : jakerpomperada@gmail.com
*/

#include <stdio.h>

int main() 
 {
 
   int a=0,b=0,sum=0,product=0;
   system("COLOR F0");
   printf("\n\n");
   printf("\tSum and Product of Two Numbers");
   printf("\n\n");
   printf("\tGive First Number  : ");
   scanf("%d", &a);
   printf("\n");
   printf("\tGive Second Number : ");
   scanf("%d", &b);
   
   // Compute the sum and product
   sum = (a+b);
   product = (a*b);
   
   printf("\n");
   printf("\tThe sum of %d and %d is %d.",a,b,sum);
   printf("\n\n");
   printf("\tThe product of %d and %d is %d.",a,b,product);
   printf("\n\n\n");
   printf("\tEND OF PROGRAM");
   printf("\n\n");
}

US Dollar Money Exchange Solver in Java

 I will show you write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half dollars as possible, the quarters, dimes, nickels, and pennies, in that order. For example, 493 cents should return 9 half dollars, 1 quarter, and 1 dime, and 1 nickel and 3 pennies using Java

programming language.

Note: US half dollar = 50 cents, quarter = 25 cents, dime = 10 cents, nickel = 5 cents, and penny = 1 cent. 

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Program Listing

/**
 * 
 */
package us_money_exchange;

import java.util.Scanner;

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * September 25, 2020  Friday
 */
public class US_Dollar_Money_Exchange {

/**
* @param args
*/
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
 
int us_dollar=0;
  int halfDollar=0, quarter=0;
int dime=0, penny=0,nickel=0;
        
        System.out.println("\n");
    System.out.print("\t\tUS Dollar Money Exchange Solver in Java");
    System.out.println("\n");
    System.out.print("\tGive amount in US Dollar Cents : ");
       
    us_dollar  = reader.nextInt();
        
        System.out.println();
        
halfDollar=(us_dollar/50);
us_dollar=(us_dollar%50);
quarter=(us_dollar/25);
us_dollar=(us_dollar%25);
dime=(us_dollar/10);
us_dollar=(us_dollar%10);
      nickel= (us_dollar/5);
penny= (us_dollar%5);

System.out.print("\tDisplay Results");
System.out.print("\n\n");
System.out.println("\tHalf Dollars : " + halfDollar);
System.out.println("\tQuarters     : " + quarter);
System.out.println("\tDime         : " + dime);
System.out.println("\tNickle       : " + nickel);
System.out.println("\tPennys       : " + penny);
System.out.print("\n");
System.out.println("\tEnd of Program");
        System.out.println("\n\n");

}

}

US Money Exchange Solver Using C Language

 I will show you write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half dollars as possible, the quarters, dimes, nickels, and pennies, in that order. For example, 493 cents should return 9 half dollars, 1 quarter, and 1 dime, and 1 nickel and 3 pennies using C programming language.

Note: US half dollar = 50 cents, quarter = 25 cents, dime = 10 cents, nickel = 5 cents, and penny = 1 cent.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

 /* us_dollar.c

   Author  : Jake Rodriguez Pomperada, MAED-IT, MIT

   Date    : September 25, 2020    Friday

   Email   : jakerpomperada@gmail.com
   
   Place   : Bacolod City, Negros Occidental, Philippines

   Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com

*/


#include <stdio.h>

int main()

{

int us_dollar=0;

int halfDollar=0, quarter=0;

int dime=0, penny=0,nickel=0;


printf("\n\n");

printf("\tUS Money Exchange Solver Using C Language");

printf("\n\n");

printf("\tGive amount in US Dollar Cents: ");

scanf("%d",&us_dollar);


halfDollar=us_dollar/50;

us_dollar=us_dollar%50;


quarter=us_dollar/25;

us_dollar=us_dollar%25;


dime=us_dollar/10;

us_dollar=us_dollar%10;

      nickel= us_dollar/5;

penny= us_dollar%5;

printf("\n\n");
   
printf("\tDisplay Results");

printf("\n\n");

printf("\tHalf Dollars : %d\n ",halfDollar);

printf("\tQuarters     : %d\n " ,quarter);

printf("\tDime         : %d\n " ,dime);

printf("\tNickle       : %d\n " ,nickel);

printf("\tPennys       : %d\n " ,penny);

printf("\n\n");

printf("\tEnd of Program");

printf("\n\n");

}



US Money Exchange Solver

  I will show you write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half dollars as possible, the quarters, dimes, nickels, and pennies, in that order. For example, 493 cents should return 9 half dollars, 1 quarter, and 1 dime, and 1 nickel and 3 pennies using C++ programming language.

Note: US half dollar = 50 cents, quarter = 25 cents, dime = 10 cents, nickel = 5 cents, and penny = 1 cent.


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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

 /* us_dollar.cpp

   Author  : Jake Rodriguez Pomperada, MAED-IT, MIT

   Date    : September 24, 2020

   Email   : jakerpomperada@gmail.com

   Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com

*/


#include <iostream>

using namespace std;

int main()

{

int us_dollar=0;

int halfDollar=0, quarter=0;

int dime=0, penny=0,nickel=0;

cout << "\n\n";

cout << "\tUS Money Exchange Solver";

cout << "\n\n";

cout<<"\tGive amount in US Dollar Cents: ";

cin>>us_dollar;

halfDollar=us_dollar/50;

us_dollar=us_dollar%50;

quarter=us_dollar/25;

us_dollar=us_dollar%25;

dime=us_dollar/10;

us_dollar=us_dollar%10;

nickel= us_dollar/5;

penny= us_dollar%5;

cout << "\n\n";

cout << "\tDisplay Results";

cout << "\n\n";

cout << "\tHalf Dollars : "<<halfDollar<<"\n";

cout << "\tQuarters     : "<<quarter<<"\n";

cout << "\tDime         : "<<dime<<"\n";

cout << "\tNickle       : "<<nickel<<"\n";

cout << "\tPennys       : "<<penny<<"\n";

cout <<"\n\n";

cout <<"\tEnd of Program";

cout <<"\n\n";

}



Wednesday, September 23, 2020

Swap Two Numbers in C

 A simple C program to ask the user to give two numbers and then the program will swap the arrangement of the two numbers.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

/* swap.c
   Jake Rodriguez Pomperada,MAED-IT,MIT
   September 23,2 2020
   www.jakerpomperada.com
   www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
*/

#include <stdio.h>

int main() 
 {
   int a=0,b=0, temp=0;
   system("COLOR F0");
   printf("\n\n");
   printf("\tSwap Two Numbers in C");
   printf("\n\n");
   printf("\tGive First Value  : ");
   scanf("%d", &a);
   printf("\n");
   printf("\tGive Second Value : ");
   scanf("%d", &b);
   printf("\n\n");
   printf("\tBefore Swapping");
   printf("\n\n");
   printf("\tA = %d and B = %d",a,b);
   
   // Swapping of values here
   temp = a;
   a = b;
   b = temp;
   
   printf("\n\n\n");
   printf("\tAfter Swapping");
   printf("\n\n");
   printf("\tA = %d and B = %d",a,b);
      
   printf("\n\n\n");
   printf("\tEND OF PROGRAM");
   printf("\n\n");
}

String Palindrome in Java

In this article, I will show you how to write a program to ask the user to give a string and then the program will check if the given string is a palindrome or not a palindrome 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

package Palindrome;

/**
 * @author Jake R. Pomperada ,MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * www.jakerpomperada.blogspot.com
 * Bacolod City, Negros Occidental, Philippines
 *
 */

import java.util.*;

public class Palindrome_String {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

String original, reverse = "";
System.out.println("\n");
    System.out.print("\tString Palindrome in Java");
    System.out.println("\n");
 
Scanner in = new Scanner(System. in);
System.out.print("\tGive a String : ");
original = in.nextLine();
int length = original.length();
for ( int i = length - 1; i >= 0; i-- )
reverse = reverse + original.charAt(i);
System.out.println();
if (original.equals(reverse))
System.out.println("\tThe string " + original + " is a palindrome.");
else
System.out.println("\tThe string " + original +  " not a palindrome.");
   System.out.println("\n");
System.out.println("\tEnd of Program");
        System.out.println("\n\n");
}

}