Hi ok so i have just started Java Programming i have studied but i am still get a little lost and stuck with the code
I was wondering if anyone could help me with a code that would require user input for the value to be multiplied to get the final answer i am not asking of anyone to do it for me i am simply asking to be pointed in the write direction as to speak
So here is the code for the first project
the objective it to have it allow user input to define the length and width
I was wondering if anyone could help me with a code that would require user input for the value to be multiplied to get the final answer i am not asking of anyone to do it for me i am simply asking to be pointed in the write direction as to speak
So here is the code for the first project
/*
Name: Reece Baron
Date: 7 Feb 2013
ID: 130830521
Ver 0.0.5
*/
public class Room {
public static void main(String[] args) {
int length = 15; // Defines length of the Room
int width = 25; //Defines width of the Room
int area = length/width;
area = length * width; // Defines Multiplication between the two areas
System.out.println("The length of the room is 15"); //Prints Room length
System.out.println("The width of the room is 25"); //Prints Rooms width
System.out.println("Which gives you a total floor space of " + area + " feet"); // Displays the total of the two areas multiplied
}
}
the objective it to have it allow user input to define the length and width