stuck

I keep getting an error on line 48, cannot resolve symbol. The 'H" in HoursPerYear of the calculation section is the error, but I am new to java and I don't know way. Please Help!

*/

import java.awt.*;

import java.applet.*;

import java.awt.event.*;

public class KilowattApplet extends Applet implements ActionListener

{

Label welcome = new Label("Welcome to the Appliance Energy Calculator:");

Label costKwhrLabel = new Label("Please enter the cost per kilowatt-hour in cents:");

TextField costKwhrField = new TextField(5);

Label HoursPerYearLabel = new Label("Please enter the kilowatt-hours consumed:");

TextField HoursPerYearField = new TextField(5);

Button calcButton = new Button("Calculate ");

Label outputLabel = new Label("Click the Calculate button to display the average enery cost");

public void init()

{

add(costKwhrLabel);

add(costKwhrField);

add(HoursPerYearLabel);

add(HoursPerYearField);

add(calcButton);

add(outputLabel);

calcButton.addActionListener(this);

}

public void actionPerformed(ActionEvent e)

{

//Converting input to values

double costKwhr = Double.parseDouble(costKwhrField.getText());

double consumedKwhr = Double.parseDouble(HoursPerYearField.getText());

//Variable used in formula and output

double average;

//Calculation

average = (costKwhr/100) * HoursPerYear;

//Output

outputLabel.setText("The average annual cost to operate this appliance is $" + Math.round (average* 100/100D));

}

}

[1643 byte] By [bronze-starDukes] at [2007-11-26 12:14:51]
# 1
What is HoursPerYear? An Object? A class? An int? Use code tags. Post some more code.
bronzestar at 2007-7-7 14:17:59 > top of Java-index,Archived Forums,Socket Programming...
# 2
post your code inside the code tag ( )
bronzestar at 2007-7-7 14:17:59 > top of Java-index,Archived Forums,Socket Programming...
# 3
Next time please paste your code between [code] [/code] tags with the help of the code button just above the message box.It makes the code readable.
goldstar at 2007-7-7 14:17:59 > top of Java-index,Archived Forums,Socket Programming...
# 4
And either your naming convention is off or your classpath is wrong.
bronzestar at 2007-7-7 14:17:59 > top of Java-index,Archived Forums,Socket Programming...
# 5
You didn't define HoursPerYear inside the code you pasted here. I guess the compiler can't smell what it type should be...
bronzestar at 2007-7-7 14:17:59 > top of Java-index,Archived Forums,Socket Programming...