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
LenKa [72]
3 years ago
10

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: Alphabetic at 1 Hint: Use two if statements to check each of the two characters in the string, using Character.isLetter().
Computers and Technology
1 answer:
serg [7]3 years ago
5 0

Answer:

// here is code in java.

import java.util.*;

//class defintion

class Main

{

// main method of class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // scanner object to read input

       Scanner s=new Scanner(System.in);

       String passcode;

       System.out.print("please enter the passcode:");

       // read string from user

       passcode=s.nextLine();

       // find first character

       char ch=passcode.charAt(0);

       // find second character

       char ch1=passcode.charAt(1);

       // if first character is alphabet

       if(Character.isLetter(ch))

       System.out.println("Alphabetic at 0:");

       // if second character is alphabet  

      else if(Character.isLetter(ch1))

       System.out.println("Alphabetic at 1:");

   }catch(Exception ex){

       return;}

}

}

Explanation:

Create a scanner class object to read input from user.Read 2-character string

from user.Find the each character and check if it is a alphabet or not.If First

character is alphabet then print "Alphabetic at 0:" else if second character

is alphabet then print "Alphabetic at 1:".

Output:

please enter the passcode:b2

Alphabetic at 0:

You might be interested in
What other kinds of toolbars exist in addition to those that are part of individual programs?
Stells [14]
<span>A. toolbars that appear on the taskbar

</span><span>D. the process of allocating uses and resources for a server</span>
6 0
3 years ago
What format should a cover letter be in?
Arisa [49]

Answer:

Cover letters should always be in standard business format!

So it should either be written/typed up on either your own letterhead or with your address block at the top of the page.

Hope this helps

Explanation:

6 0
3 years ago
Read 2 more answers
Kathi, the owner of Klothes for Kats, is excited about the launch of her first Local Catalog ad. She remembers there are a few d
mina [271]

Answer:

Map view

Explanation:

The view that will most likely be displayed would be a Map view, where potential customers can see the Klothes for Kats logo, store information, and in-stock products. This is because Local Catalog ads only have a small space that is used to promote what is being advertised. Therefore, in these small spaces the most important things need to be shown in order to attract as many people as possible with what the store offers. The ad needs to have the logo and store information so that the potential customers can easily know what store is being advertised on the ad. The ad also needs to show some of the popular in-stock products in order to attract individuals that are actually interested in the products that the store is trying to sell.

6 0
3 years ago
HELP!' Prompt<br> In a table, what is a field?
ser-zykov [4K]

Answer:

Fields are the components that provide structure for a table. In fact, you can't have a table without fields. ... Fields in a table store the same category of data in the same data type. For example, if you have a NAME field in a table of customers, the entries for this field are all customer names and are stored as text.

3 0
3 years ago
FIrst person to put lyrics to wap gets brainliest 100% NO CAP
Firdavs [7]

Answer:

i got u

Explanation:

****** in this house

There's some ****** in this house

There's some ****** in this house

There's some ****** in this house (Hol' up)

I said certified freak, seven days a week

Wet and gushy, make that pullout game weak, woo (Ah)

[Chorus: Cardi B]

Yeah, yeah, yeah, yeah

Yeah, you dealin' with some wet and gushy

Bring a bucket and a mop for this wet and gushy

Give me everything you got for this wet and gushy

[Verse 1: Cardi B & Megan Thee Stallion]

Beat it up, baby, catch a charge

Extra large and extra hard

Put this cookie right in your face

Swipe your nose like a credit card

Hop on top, I wanna ride

I do a kegel, I'm kinda wild

Look at my mouth, look at my thighs

This water is wet, come take a dive

Tie me up like I'm surprised

Let's roleplay, I'll wear a disguise

I want you to park that big Mack truck right in this little garage

Make me dream, make a stream

Out in public, make a scene

I don't cook, I don't clean

But let me tell you how I got this ring (Ayy, ayy)

5 0
3 years ago
Other questions:
  • Which of the following occurs when the amount of money earned is greater than the
    5·1 answer
  • 1.  
    15·1 answer
  • Taking a picture with a wide aperture creates a shallow depth of field. The subject is up close and in focus and defined while b
    12·2 answers
  • Which of the following factors will have the greatest impact on your credit score? I. Length of Credit History II. Payment Histo
    6·2 answers
  • A support agent who feels that a user needs substantial assistance with the organization of files on their pc should ____.
    5·1 answer
  • Which user characteristic may not be used to change keyword bids in adwords?:?
    11·1 answer
  • Cuál ha sido el papel de las tecnologías de la información y los medios de comunicación en el fenómeno de la globalización​
    10·1 answer
  • What is the correct sequence in which a computer operates​
    6·1 answer
  • A friend asks you to look over the code for an adventure game and help figure out why it won’t work. Which of these options is s
    5·2 answers
  • Im a beginner programmer. what languages should i learn and how do i get better
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!