How to Add Social Icons on Blogger


Adding social icons on your site it's so easy just follow this steps.

Step 1: You can customize or select your own social icons any design  that you like you can visit this site for reference Click Me.

Step 2: After selecting the desired icon/design, If you have a photobucket account just simple go there and upload your photo/design icon to get the code.

Copy the DIRECT LINK only

Step 3:  Copy this code and replace the YOUR LINK HERE to your SITE or links you want to visit example, https://www.facebook.com/ and DIRECT LINK to your code on photobucket. 

<a href="YOUR LINK HERE"><img src="DIRECT LINK OF YOUR PHOTO" /></a>

<a href="YOUR LINK HERE"><img src="DIRECT LINK OF YOUR PHOTO" /></a>

<a href="YOUR LINK HERE"><img src="DIRECT LINK OF YOUR PHOTO" /></a>

<a href="YOUR LINK HERE"><img src="DIRECT LINK OF YOUR PHOTO" /></a>



Color Program

The user should input this following letter:

if Y the result should be YELLOW,  if R the result should be RED,  if W the result should be WHITE, if V the result should be VIOLET, if P the result should be PINK, if the user will input none of those letter ten the output should be "NO COLOR AVAILABLE!"

Code:


Here's the code:

package color;
import java.util.Scanner;

public class Color {
static Scanner console=new Scanner(System.in);
    public static void main(String[] args) {
       
         String input; char letter;
        System.out.println("Enter a letter:");
        input=console.next();
        letter=input.charAt(0);
        
        switch (letter){
            case'y':case'Y':System.out.println("Yellow");break;
            case'r':case'R':System.out.println("Red");break;
            case'w':case'W':System.out.println("White");break;
            case'v':case'V':System.out.println("Violet");break;
            case'p':case'P':System.out.println("Pink");break;    
            default:System.out.println("NO COLOR AVAILABLE!");break;      
        }
      
    }
}


ATM System

Problem: Create a program for a BANK called ATM SYSTEM
Transactions are:
- Balance Inquiry
- Withdraw
- Change Pin

NOTE: 

1.)  There will be 5 account holders
        - Name
        - Pin

2.) Ask for a transaction

3.) Perform the transaction

4.) Ask another transaction (Y/N) if  "Y" loop again

Code: 

package atm;
import java.util.Scanner;
public class Atm {
static Scanner candy = new Scanner (System.in);
public static void main(String[] args){

String name[] = {"Hatake Kakashi", "Uzumaki Naruto", "Oborume Shino", "Nara Shikamaru","Uchicha Sasuke"}; 
int pin[] = {1111, 2222, 3333, 4444, 5555}; 
double withdrawAmount, balance[]={10000.00,20000.00,50000.00,100000.00,1000000.00};
int account, results, choice, cpin = 0, oldpin = 0, newpin = 0;
String answer;
char choice1;


System.out.println("---AUTOMATED TELLER MACHINE---");
System.out.println("Enter your PIN number: ");
account =candy.nextInt();
results = pin (pin,account);
if(results==-1){
System.out.println("Invalid");
}
else{
if(pin[results]== account);}
do{ 
System.out.println("\n---[ WELCOME " + name[results]+"! ]---\n"); 
System.out.println(" -- TRANSACTION -- ");
System.out.println(" [1] Balance Inquiry ");
System.out.println(" [2] Withdraw ");
System.out.println(" [3] Change Pin ");
System.out.println("Enter Choice : ");
choice=candy.nextInt();

switch (choice){
case 1: System.out.println("\nYour Current Balance is "+balance[results]);
break; 

case 2: System.out.println("How much do you want to withdraw?");
System.out.print("Amount: ");
withdrawAmount=candy.nextInt();
if(withdrawAmount > balance[results]){
System.out.println("\nInsufficient funds in your accout");
}
else{
balance[results]-=withdrawAmount; 
System.out.println("\n Withdrawal Successful");
System.out.println("\n Your Balance is: " +balance[results]);
}break;

case 3: System.out.println("Enter Old Pin:\t\t"); 
oldpin=candy.nextInt();
System.out.println("Enter New Pin:\t\t");
newpin=candy.nextInt();
System.out.println("Confirm New Pin:\t");
cpin=candy.nextInt();
if ((oldpin== pin[results])&&(newpin== cpin)){
pin[results]=cpin;
System.out.println("\n PIN Changed");
} break;
default: System.out.println(" ERROR TRANSACTION !"); break;
}


System.out.println("*****************************");
System.out.println("You want another transaction?");
answer =candy.next();
choice1=answer.charAt(0);
}
while((choice1=='y')||(choice1=='Y'));
System.out.println("THANK YOU && COME AGAIN !!");
}

private static int pin(int[] pin, int account) {
for( int x=0; x<pin.length; x++){
if (account == pin[x]){
return x;
 }
   } return -1;
 }
}

What is Cloud Computing?

Cloud computing is the use of computing resources (hardware and software) that are delivered as a service over a network (typically the Internet). The name comes from the use of a cloud-shaped symbol as an abstraction for the complex infrastructure it contains in system diagrams. Cloud computing entrusts remote services with a user's data, software and computation.

There are many types of public cloud computing:

Infrastructure as a service (IaaS),
Platform as a service (PaaS),
Software as a service (SaaS)
Storage as a service (STaaS)
Security as a service (SECaaS)
Data as a service (DaaS)
Business process as a service (BPaaS)
Test environment as a service (TEaaS)
Desktop as a service (DaaS)
API as a service (APIaaS)


 
My IT Life © 2011-2014|Gene Rose