i'm having a total problem with member systems, pm systems etc.
import java.util.Scanner;
public class Grader
{
public static void main( String args[] )
{
Scanner input = new Scanner( System.in );
int TestOne;
int TestTwo;
int TestThree;
int TestFour;
int sum;
System.out.print( "enter your test score:" );
TestOne = input.nextInt();
System.out.print( "Enter your test score:" );
TestTwo = input.nextInt();
System.out.print( "Enter your test score:" );
TestThree = input.nextInt();
System.out.print( "Enter your Test Score:" );
TestFour = input.nextInt();
[B]sum = (TestOne / 100.0 ) + (TestTwo / 100.0) + (TestThree / 100.0) + (TestFour / 100.0 ) / 4.0;[/B]
System.out.printf( "Sum is %d\n", sum );
}
}
import java.util.Scanner;
public class Grader
{
public static void main( String args[] )
{
Scanner input = new Scanner( System.in );
[B]double TestOne;
double TestTwo;
double TestThree;
double TestFour;
double sum;[/B]
System.out.print( "enter your test score:" );
[B]TestOne = input.nextDouble();[/B]
System.out.print( "Enter your test score:" );
[B]TestTwo = input.nextDouble();[/B]
System.out.print( "Enter your test score:" );
[B]TestThree = input.nextDouble();[/B]
System.out.print( "Enter your Test Score:" );
[B]TestFour = input.nextDouble();[/B]
sum = (TestOne / 100 ) + (TestTwo / 100) + (TestThree / 100) + (TestFour / 100) / 4;
System.out.printf( "Sum is %d\n", sum );
}
}
sum = (TestOne / 100.0 ) + (TestTwo / 100.0) + (TestThree / 100.0) + (TestFour / 100.0 ) / 4.0;
import java.util.Scanner;
public class Help {
public static void main( String args[] )
{
Scanner input = new Scanner( System.in );
double TestOne;
double TestTwo;
double TestThree;
double TestFour;
double sum;
System.out.print( "enter your test score:" );
TestOne = input.nextDouble();
System.out.print( "Enter your test score:" );
TestTwo = input.nextDouble();
System.out.print( "Enter your test score:" );
TestThree = input.nextDouble();
System.out.print( "Enter your Test Score:" );
TestFour = input.nextDouble();
sum = (TestOne +TestTwo + TestThree + TestFour) / 4;
System.out.printf( "Sum is %.2f", sum );
}
}