2010-02-05 11:24:52 UTC
//Name:
//Date:
public class MyMathLab
{//open class
public static void main(String args [])
{//open main method
//1.) declare two user defined variables of type int named myNumA, and myNumB
//2.) declare and assign the literal value of 10 to a user defined variable of type byte named myLittleNum
//3.) declare a user defined variable of type int to store the results of the math equation and name it myResult
//4.) declare a String named printOut
//5.) assign literal values to the myNumA and myNumB variables
//6.) assign a value to the myResut value using an addition statement --> add myNumA and myNumB
//7.)assign the text to the String named printOut --> "The value of myResult = "
//8.) call the print method found in the System class in the java.lang.* to print out the values of the printOut and myResult
//9.) print out a line between the print statement above
System.out.println("________________…
//----------------------------------…
//10.) assign new values to the variables myNumA, myNumB, myLittleNum
//11.) assign a value to myResult by multiplying myNumA and myNumB and then subtract myLittleNum --->DON'T FORGET PARENTHESES
//12.) assign a new String value to the variable printOut -- state what you are printing out i.e. the result of multiplying and subtracting
//13.) call the print method found in the System class in the java.lang.* to print out the values printOut and myResult
//print out a line between the print statement above
System.out.println("________________…
//----------------------------------…
//14.)UNCOMMENT OUT THE System.out.println( ); WHEN YOU GET ALL THE STEPS ABOVE WORKING
//use the System.out.println statement to do the math (not very clear and not a good idea)
//System.out.println((((myNumA + myNumB)+myLittleNum)*3));
}
}