Week12Chap12-I

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

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

View Full Document Right Arrow Icon
Janaka Balasooriya CSE 110, Arizona State University Chapter 12 Introduction to Recursion
Background image of page 1

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

View Full DocumentRight Arrow Icon
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); } }
Background image of page 2
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");
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online