Calculate the height and width of your window!

WindowMaster

Public static void main (String[] args){

Float height = ;
Float width = ;

String stringHeight = “”;
String stringWidth = “”;

Float areaOfWindow ;
Float perimeterOfWindow;
Float cost;

Scanner sc = new Scanner(System.in);

System.out.println(“please input the Height of your window !”);

Sc.nextLine();

System.out.println(“please input the Width of your window !”);

Sc.nextLine();

/* convert the StringHeight and StringWidth to floats */

areaOfWindow = height * width;

perimeterOfWindow = height + width *2;

Cost = ((3.50f * areaOfWindow) + (2.50f * perimeterOfWindow ) );

Sout “the area is:” + areaOfWindow

Sout “the perimeter is:” + perimeterOfWindow

Sout “your total cost is :” + cost;

}

I wrote out my first java code !

SUPER GREAT-FULL!

I can not begin to say how happy I feel, but I will say that I appreciate the opportunity and I have been studying as best as I can, because if I couldn’t make it I would still do my best to learn because It is something that has my total interest and I am happy doing this after the long nights.

Thanks to everyone who has helped me get this far !