1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Papessa [141]
3 years ago
8

Write code to print the location of any alphabetic character in the 2-character string passCode. Each alphabetic character detec

ted should print a separate statement followed by a newline. Ex: If passCode is "9a", output is:
Computers and Technology
1 answer:
Flauer [41]3 years ago
4 0

Answer:

//Program written in Java Programming Language

// Comments are used for explanatory purpose

import java.util.Scanner; //Scanner Library Imported

public class findloc { //Program Class Declared

public static void main (String [] args) {//Program Main Method

Scanner input = new Scanner(System.in);

string passCode; // Declare string passCode

passCode = Input.next();//Input Passcode

if(Character.isLetter(passCode.charAt(0)))//Check Alphabet Position

{

System.out.println("Alphabetic at 0");//Print Alphabet position is at 0

}

if(Character.isLetter(passCode.charAt(1))) //Check Alphabet Position

{

System.out.println("Alphabetic at 1");//Print Alphabet position is at 1

}

}

}

You might be interested in
What protein is found in hair and nails
Yuliya22 [10]

Keratin is found in both hair and nails.

Hope this helps!

4 0
4 years ago
Read 2 more answers
Where Can I Get Actual Microsoft AZ-900 Exam Questions?
Pachacha [2.7K]

Answer:

Pls check the site "examtopics"

U fill find ur questions there

8 0
4 years ago
In the microsoft powerpoint view tab, which presentation view enables a user to view one slide at a time in the slide pane? a no
fredd [130]
Normal is the correct answer
6 0
3 years ago
When spark plug cables aren't far enough apart, premature firing of adjacent spark plugs can happen. this is known as?
e-lub [12.9K]
Misfiring seems to be a blanket term for spark plug inefficiencies and errors due to wrong gap configuration. Because of the small gap, the time <span>of the spark has less travel distance, it does not remain hot enough to ignite the air-fuel mixture that is needed to run the engine. </span>
7 0
3 years ago
Why do the query tables use an underscore in their names?
Vedmedyk [2.9K]

An underscore is a permitted character in documentations such as MySQL. An underscore in query tables can increase readability. For example, if we use thisIsMyColumn as a column name, it is very easy to write. However, this _is_my_column as a column name is more readable.

 






7 0
3 years ago
Other questions:
  • Write the interface (.h file) of a class Counter containing: A data member counter of type int. A data member named counterID of
    13·1 answer
  • In Microsoft Word you can access the _______ command from the "Mini toolbar
    11·1 answer
  • How to scan documents from printer to computer?
    13·1 answer
  • The implementation stage of the SDLC _____.
    7·1 answer
  • Use the following global structure declaration as an example only. You will need to create your own data structure based on a da
    5·1 answer
  • I NEED IT FOR TODAY FOR KEYBOARDING TEST! GIVE ME CORRECT ANSWER PLZ!
    12·2 answers
  • Exploring Arraylists. Remember that arraylists are good for adding and removing things, and that they are clock-cycle friendlier
    13·1 answer
  • Why is manual coding the best way to learn HTML?
    11·1 answer
  • Which of the following are examples of IT
    14·1 answer
  • What is the most complex part of a PC?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!