How would I do this in Java language without a Boolean CSCI 200: Software Design and Programming I home >3.15: Character operationsE zyBooks catalog2 Help/FACHALLENGEACTIVITY3.15.2: Alphabetic...

How would I do this in Java language without a Boolean
ammunity Col x<br>-Chapter 3 Participation Activitie x<br>zy Section 3.15 - CSCI 200: Softwar x<br>+<br>learn.zybooks.com/zybook/LADELTACSC1200KleinpeterSpring2022/chapter/3/section/15<br>My library > CSCI 200: Software Design and Programming I home ><br>3.15: Character operations<br>E zyBooks catalog<br>2 Help/FA<br>CHALLENGE<br>ACTIVITY<br>3.15.2: Alphabetic detect.<br>Write code to print the location of any alphabetic character in the 2-character string passCode. Each alphabetic character detected<br>should print a separate statement followed by a newline. Ex: If passCode is
Cc 23 2$ % & 3 4. 5 8. 9. "/>
Extracted text: ammunity Col x -Chapter 3 Participation Activitie x zy Section 3.15 - CSCI 200: Softwar x + learn.zybooks.com/zybook/LADELTACSC1200KleinpeterSpring2022/chapter/3/section/15 My library > CSCI 200: Software Design and Programming I home > 3.15: Character operations E zyBooks catalog 2 Help/FA CHALLENGE ACTIVITY 3.15.2: Alphabetic detect. Write code to print the location of any alphabetic character in the 2-character string passCode. Each alphabetic character detected should print a separate statement followed by a newline. Ex: If passCode is "9a", output is: Alphabetic at 1 Hint: Use two if statements to check each of the two characters in the string, using Character.isLetter(). 371670 2055702 dzay? 3 public class FindAlpha { public static void main (String [] args) { Scanner scnr = new Scanner (System.in); String passcode; 4 1 lest passed 8 passCode = scnr.next(); scnr.next (); All tests passed if (Character.isLetter (passCode.charAt (0))) { System.out.println("Aphphabetic at 0"); 10 11 12 13 else { 14 15 16 17 18 19 20 Run X Not all tests passed X Testing. "9a -> Cc 23 2$ % & 3 4. 5 8. 9.
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here