Week12Chap12-I

# Week12Chap12-I - Chapter 12 Introduction to Recursion...

This preview shows pages 1–4. Sign up to view the full content.

Janaka Balasooriya CSE 110, Arizona State University Chapter 12 Introduction to Recursion

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Methods and Methods Calling other Methods public class Courses { public static void main(String [] args) { double [] CSE110Student1 = {100, 98.5,89}; // Print the letter grade for student 1 System.out.println("\t\tCSE 110 Class Informtion"); GradeCalculationModified.printLetterGrades(CSE110Student1); } }
Methods and Methods Calling other Methods public class GradeCalculationModified { public static void printLetterGrades(double [] scores) { double final_average = calculateFinalAverage(scores); int range = (int) final_average/10; switch(range) { case 10: case 9: System.out.println("Student has earned the letter grade A"); break; case 8: System.out.println("Student has earned the letter grade B"); break; case 7: System.out.println("Student has earned the letter grade C"); break; case 6: System.out.println("Student has earned the letter grade D"); break; default: System.out.println("Student has earned the letter grade E");

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 9

Week12Chap12-I - Chapter 12 Introduction to Recursion...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online