Hello
(Hey Matyr) I just got back from Survivor and enjoying my time off with my Hot wife

Anyway!
I was a happy visitor of the Javascript forum and have now graduated to Java.
I have made my Program it works good enough for my homework.
I would just like someone to review it and make sure I start off on the right foot.
I didnt understand why I could only get one zero after the decimal I had to fudge it.
I was able to make the TextIO.java work but I dont understand why it wont give me the zero.
Well anywho I did everything I could before I posted so be easy.
Catch you on the Island.
CODE
/*
* WeeklyPay.java
*
* Created on February 3, 2008, 12:57 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
/**
*
* @author Dad
*/
public class YoungWeeklyPay {
/** Creates a new instance of WeeklyPay */
public WeeklyPay() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// Declare Variables
int hours = 0; //Variable Hold for User input hours worked
double level = 0; //Variable Hold For user input Level Number
double temp = 0; //Variable holder for calculation
System.out.println("Please enter Hours worked! "); //user input hours worked
hours = TextIO.getlnInt();
System.out.println("Please enter your Level "); // User input Level of Employee
temp = TextIO.getInt();
if (temp == 1) level = 8; //begin If Statement
else if (temp == 2) level =10;
if (temp == 3) level =12; // End If Statement
System.out.println("Your Weekly pay is $"+ hours*level+0 ); //Final output of Calculation
}
}
This post has been edited by bostonrob: 3 Feb, 2008 - 01:01 PM