Question: Java: if/else statements == != > < >=
Java:
- if/else statements
- == != > < >= <= relational operators
- && || logical operators
- System.out.printf method
- string comparisons using the equals and equalsIgnoreCase methods
- char variables and literal values
- boolean variables or expressions with literal values true or false
- throw exception statements
Implement a method. Your solution should be capable of generating the following three annotated sample I/O sessions Information for applicant #1: Do you have (S)AT scores or (A)CT scores? a The applicant's score type is A Information for applicant #1: Do you have (S)AT scores or (A)CT scores? S uppercase input The applicant's score type is S Information for applicant #1: Do you have (S)AT scores or (A)CT scores? x Exception in thread "main" java.lang.RuntimeException: Invalid score type. Must be S, s, A or a.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
