WeMo Connect

Setup Menus in Admin Panel

Assignment – calculate grades

// Assignment GPA

public class Grades {

static int[] grades = {4,2,3,3,4};

static float calcGPA()

{

// Assignment – change this program to calculate GPA

// using global array variable ‘grades’ and return your

// GPA

return (float)0.0;

}

public static void main(String[] args) {

System.out.printf(“\nMy grades are: %f”, calcGPA());

}

}

January 9, 2015

0 Responses on Assignment - calculate grades"

    Leave a Message

    Your email address will not be published. Required fields are marked *