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
VARVARA [1.3K]
3 years ago
6

50 POINTS

Computers and Technology
1 answer:
pentagon [3]3 years ago
7 0

import java.util.Scanner;

public class JavaApplication52 {

   public static String reverse(String word){

       String newWord = "";

       for (int i = (word.length()-1); i >= 0; i--){

           newWord += word.charAt(i);

       }

       return newWord;

   }

   public static boolean isPalindrome(String word){

       if (word.equals(reverse(word))){

           return true;

       }

       else{

           return false;

       }

   }

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Type in your text:");

       String text = scan.nextLine();

       if (isPalindrome(text) == true){

           System.out.println("Your word is a palindrome!");

       }

       else{

           System.out.println("Not a palindrome :(");

       }

   }

   

}

I hope this works!

You might be interested in
A user who bypasses the documentation to get a new hardware or software package operational as rapidly as possible is a victim o
Leya [2.2K]

A user who bypasses the documentation to get a new hardware or software package operational as rapidly as possible is a victim of quick start behavior.

<h3>What is Quick Start Behavior Guide?</h3>

The Quick Start Behavior guide is known to be a fast introduction to the use of Class Charts behavior management software.

A user who bypasses the documentation to get a new hardware or software package operational as rapidly as possible is a victim of quick start behavior as he or she is in haste and thus did a bypass.

Learn more about documentation from

brainly.com/question/25534066

5 0
3 years ago
The ________ contains the central electronic components of the computer. select one:
Sati [7]
The motherboard contains the central electronic components of the computer.
6 0
3 years ago
the function must find the substrings of s that start with a vowel and end with a consonant, then print the alphabetically first
PolarNik [594]

According to the parameters given in the questions above, the alphabetically lowest and highest substrings that start with a vowel and end with a Consonant is given below.

<h3>What is the determined substrings described above?</h3>

The determined substring is given by the following:

def findSubstrings(s):

   sub_strings_list=[]    #the required substrings list

   vowels=['a','e','i','o','u']    #vowels list

   for i in range(0,len(s)):    

       for j in range(i+1,len(s)+1):

           sub_string=s[i:j]    #slicing the original string into substring

           #checking whether the substring starts with a vowel and ends with a consonant

           if(sub_string[0] in vowels and sub_string[-1] not in vowels):    

               if(sub_string not in sub_strings_list):    #checking if the substring is already in the list

                   sub_strings_list.append(sub_string)    #if all conditions are satisfied adding the substring to the list

   sub_strings_list.sort()    #sorting the list alphabetically

   print(sub_strings_list[0])    #printing the first substring in the list

   print(sub_strings_list[-1])    #printing the last substring in the list

s=input()

findSubstrings(s)

Learn more about substrings:
brainly.com/question/21306076
#SPJ4

Full Question:

Consider a string, s — An alphabetically-ordered sequence Of Of s would be {"a", "ab•, "abc • , "bcu, If the sequence is reduced to only those substrings that start with a vowel and end with a consonant, the result is Cab", •abc"}. The alphabetically first element in this reduced list is •ab", and the alphabetically last element is "abc'. As a reminder:

Vowels: a, e, i, o, and u.

Consonants: b, c, d, f, g, h, i, k, l, m, n, p, q, r, s, t, v, w, x, y, and z.

For a given string, determine the alphabetically lowest and highest substrings that start with a vowel and end with a Consonant.

7 0
2 years ago
A method to move data through a network of links and switches which reserves communication sessions between end systems is calle
lubasha [3.4K]

Answer:Circuit switching and packet switching

Explanation: Circuit switching is the switching technique through the connection from the source port to the destination port.Packet switching is also a switching techniques in connectionless form for the data packets. Both these switching techniques helps in communication between end and start ports.

Other option are incorrect as the access networks provide the access to the network and throughput is the input passing in the network.Thus, the correct option is circuit switching and packet switching .

3 0
4 years ago
Instead of delivering songs that you are likely enjoy services such as offers you a bility to play practically song that you wan
s344n2d4d5 [400]
Use Amazon music you can play any song you want
7 0
3 years ago
Other questions:
  • A company has decided to re-introduce a retro-radio by reproducing a product that was manufactured in the 1940s. The company has
    5·1 answer
  • What is &lt;html&gt;
    9·2 answers
  • What can be used to provide a checklist of user tasks that must be included in the interface design?
    6·1 answer
  • How do you create a logo on Adobe illustrator
    8·1 answer
  • Give one example of a civil engineering structure.
    5·1 answer
  • Create a Boolean function odd_number_digits(n) that returns True when a positive integer has an odd number of digits. (You may a
    15·1 answer
  • Since we know that this particular instance of the AppMaker implements a customer-facing store that processes financial transact
    6·1 answer
  • Reesa works for a large real estate company. She is responsible for installing and supporting the company's internet systems, in
    5·1 answer
  • What is web browser <br>​
    7·2 answers
  • What is the current situation in farming​
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!