Use only switch and if statements only, please. LetterGradeToNumber (Java Application] //Library/Java/JavaVirtualMachines/jdk XXXXXXXXXXjdk/Contents/Home/bin/java (Enter letter grade:A-The numeric...


Use only switch and if statements only, please.


Write a program with class nameletterGradeToNumberthat translates a letter grade into a number grade.<br>Letter grades are A, B, C, D, and F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0. There is<br>no F+ or F-. A+ increases the numeric value by 0.3, a– decreases it by 0.3. However, an A+ has value 4.0.<br>Sample output:<br>@ Javadoc<br>Console X Progress<br>Coverage<br><terminated> LetterGradeToNumber (Java Application] //Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java (<br>Enter letter grade:<br>A-<br>The numeric value is 3.7.<br>@ Javadoc e Console X Progress<br>Coverage<br><terminated> LetterGradeToNumber (Java Application] /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java (<br>Enter letter grade:<br>The numeric value is 4.0.<br>@ Javadoc<br>Console X Progress<br>Coverage<br><terminated> LetterGradeToNumber (Java Application] /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java (<br>Enter letter grade:<br>A+<br>The numeric value is 4.0.<br>

Extracted text: Write a program with class nameletterGradeToNumberthat translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0. There is no F+ or F-. A+ increases the numeric value by 0.3, a– decreases it by 0.3. However, an A+ has value 4.0. Sample output: @ Javadoc Console X Progress Coverage LetterGradeToNumber (Java Application] //Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java ( Enter letter grade: A- The numeric value is 3.7. @ Javadoc e Console X Progress Coverage LetterGradeToNumber (Java Application] /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java ( Enter letter grade: The numeric value is 4.0. @ Javadoc Console X Progress Coverage LetterGradeToNumber (Java Application] /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java ( Enter letter grade: A+ The numeric value is 4.0.
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here