Question: What would be the output from the main () method below? public static int updatedGrade (int grade) ( if (grade < 70) ( grade

What would be the output from the main () method below? public static int updatedGrade (int grade) ( if (grade < 70) ( grade += 2; } else if (grade == 73) { grade ++; } else if (grade > 73) { grade --; } return grade; public static void main(String[] args) { int grade = 73; int updatedGrade updatedGrade (grade); System.out.print (grade + ", "); grade = 76; updatedGrade = updatedGrade (grade); System.out.print(grade);
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
Now lets analyze the code In the updatedGrade method If grade is less than 70 2 is added to grade If ... View full answer
Get step-by-step solutions from verified subject matter experts
