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
The older computer had a CPU that ran at 266MHz compared to a current CPU that runs 3.7GHz. How many times faster is the new CPU
sergij07 [2.7K]

Answer:

Number of times new computer faster than old computer = 13.90 times (Approx)

Explanation:

Given:

Clock speed of old computer = 266 MHz

Clock speed of new computer = 3.7 GHz

266MHz = 0.266GHz

Find:

Number of times new computer faster than old computer

Computation:

Number of times new computer faster than old computer = Clock speed of new computer / Clock speed of old computer

Number of times new computer faster than old computer = 3.7 / 266

Number of times new computer faster than old computer = 3.7 / 0.266

Number of times new computer faster than old computer = 13.90 times (Approx)

3 0
3 years ago
In spreadsheets, a cell reference is also referred to as which of the following? A. active cell B. axis C. cell address D. entry
nignag [31]
Generally its referring to the cells location, so C.
4 0
3 years ago
Write a function named "read_json" that takes a JSON formatted string as a parameter and return the data represented by the inpu
Lelu [443]

Answer:

Following are the program in the Python Programming Language.

import json #import package

#define function

def read_json(info):

 return json.loads(info)#load data in variable

#call and print the function

print(read_json('[{'A': 10}, {'Y': 16}, {'U': 28}]'))

<u>Output</u>:

[{'A': 10}, {'Y': 16}, {'U': 28}]

Explanation:

following are the description of the code

  • Define function "read_json()" and pass an argument "info" inside it.
  • Return the data inside from the "load()" function .
  • Call the function i.e "read_json" and passing the value to that function.
  • Print function print the data which is inside the "read_json" function.
3 0
3 years ago
Which is a gallery of pr design pictures that can be inserted directly in the document​
fredd [130]

Answer:

.,.,.,.,.,.,.,.,.,.,.,.,.

6 0
3 years ago
Please someone help!!!!
Montano1993 [528]

Answer:

do what the directions say and you should be able to figure out the answer if not contact me through brainly

Explanation:

3 0
3 years ago
Other questions:
  • All of the following are good reasons to attend a cummunity college except
    10·2 answers
  • A(n) _ is a book of synonyms.
    14·1 answer
  • An option button is a square button that enables you to make one choice among two or more options.
    15·1 answer
  • The enhanced for statement allows you to iterate through the elements of an array or a collection without using a counter. Give
    10·2 answers
  • A problem associated with old drivers is:
    8·1 answer
  • Life was not easier a century ago<br><br>​
    9·2 answers
  • HELLO. Which of the following is NOT a way to control the flow of a program?
    6·2 answers
  • Write a function that takes a list and returns its first element​
    15·1 answer
  • How to hack a I'd Indian brainly bot​
    7·1 answer
  • 2. Write the pseudocode to print all multiples of 5 between 10 and 25 (including both<br> 10 and 25)
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!