Hi, im a first year computing student after having basically done about 2 years of learning databases, web development and networking i have now started to learn Java. However its just plain difficult for me as i have trouble understanding what everything means and such.
Anyway heres my current assignment:
class Main
{
public static void main(String args[])
{
int exam;
int coursework;
double result;
exam = 71;
coursework = 40;
result = (exam + coursework) / 2;
System.out.print( "EX = ");
System.out.print( exam );
System.out.print( " CW = ");
System.out.print( coursework );
System.out.print( " Mark = ");
System.out.println( result );
}
}
Which prints : EX = 71 CW = 40 Mark = 55.0
However i want it to print: EX = 71 CW = 40 Mark = 55.5
I know its basic but i do need the help and anyone with links or tips on learning java/programming overall would be greatly appreciated