1. Engineering
  2. Computer Science
  3. please help the programing language is java sample output when...

Question: please help the programing language is java sample output when...

Question details

Please Help! The programing Language is JAVA.

  • Sample output
    • When given the input below, your output must match it exactly
      Enter a grade: 71
      Enter a grade: 85.2
      Enter a grade: -2
      Error.  Grade must be between 0 and 100; or -1 to finish
      Enter a grade: -12.23
      Error.  Grade must be between 0 and 100; or -1 to finish
      Enter a grade: 99.6
      Enter a grade: 73
      Enter a grade: 101
      Error.  Grade must be between 0 and 100; or -1 to finish
      Enter a grade: -1
      
      You entered 4 valid grades.
      You entered 3 invalid grades.
      
      Highest grade: 99.6 (A)
      Lowest grade: 71 (C)
      Average: 82.2 (B-)
      
      Here are the 4 valid grades:
      71 (C)
      85.2 (B)
      99.6 (A)
      73 (C)
      
      Here are the 3 invalid grades:
      -2
      -12.23
      101Enter a grade: 71 Enter a grade: 85.2 Enter a grade: -2 Error. Grade must be between 0 and 100; or -1 to finish Enter a arade: -12.23 Error. Grade must be between 0 and 100; or -1 to finish Enter a grade: 99.6 Enter a grade: 73 Enter a grade Error. Grade must be between 0 and 100; or -1 to finish Enter a grade: -1 : 101 You entered 4 valid grades You entered 3 invalid grades. Highest grade: 99.6 (A Lowest grade: 71 CC) Average: 82.2 (B- Here are the 4 valid grades 71 (C) 85.2 (B) 99.6 (A) 73 (C) Here are the 3 invalid grades: 12.23 101
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution