Q:

How to formulate this logic using only if statement?

I need to formulate a logic using if statement using these facts.

The charge for all signs is a minimum of $35.00. 
The first five    letters or numbers are included in the minimum
charge; there is a $4    charge for each additional character.
If the sign is made of oak, add    $20.00. No charge is added for
pine.
Black or white characters are    included in the minimum charge;
there is an additional $15 charge for    gold-leaf lettering.

You need to declare variables for the following, and initialize them where specified.

A variable for the cost of the sign initialized to 0.00.
A variable for the color of the characters initialized to "gold".
A variable for the wood type initialized with the value "oak".
A variable for the number of characters initialized with the value 8.

My problem is with the 2nd fact. I just can't seem to formulate its logic.
This is what I made so far.
public static void main(String args[]){

    JOptionPane jo = new JOptionPane();
    double minCharge = 35.00;
    double signCost = 0.00;
    String charColor = "gold";
    String woodType = "oak";
    int charNum = 8;

    String signName =jo.showInputDialog("Enter the sign name");
    String signCharColor =jo.showInputDialog("Enter the character color");
    String typeOfWood =jo.showInputDialog("Enter the type of wood to be made");

    signCost = minCharge;

    if(signCharColor.equalsIgnoreCase(charColor))
        signCost += 15;

    if(typeOfWood.equalsIgnoreCase(woodType))
        signCost += 20;

    if(signName.length() > 5)
        signCost =  ;

    String hold= "\n| The charge for this sign is $"+signCost+"|";
    jo.showMessageDialog(null, new JTextArea(hold));

     }
}

A:

Lets see:

The first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character.

In pseudo-code:
if sign-length <= 5:
  charge stays the same
else:
  charge = charge + (sign-length - 5) * rate-per-character

Should get you going ...

