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
777dan777 [17]
3 years ago
14

A palindrome is a string that is the same regardless of whether your read it forward or backward, assuming you ignore the spaces

and punctuations. For instance, the string "race car" is a palindrome. So is "a man a plan a canal panama" . Describe how you could use a stack to determine whether a string is palindrome. Trace your algorith for the string "deanaed"
Computers and Technology
1 answer:
pashok25 [27]3 years ago
6 0

Answer:

The explanation for this question is describes in the explanation section below.

Explanation:

A palindrome is a number, string, expression or certain character pattern that appears the very same backward as a forward.

Below is an algorithm for the series:

Step 1: Creates an object of generic stack-type of string set.

Step 2: Accept the sequence from those in the user as its entry.

Step 3: Throughout the specified set, disregard the white space.

Step 4: Build an object for the reverse string to be stored.

Step 5: To store the stack into the string, place the object that has come into the stack.

Step 6: Test whether the reversed string equals the initial string.

Step 7: Display the message of success.

Step 8: Display the message of failure when the strings aren't the same.

You might be interested in
1) what are two functions of a pick or count condition?
anastassius [24]
1. The answer is C. Pick an object at random, and keep track of how many copies of an object are left in a game.

2. The answer is D. Clockwise and counter clockwise.

3. The answer is B. To play an object's animation.

I hope you find this helpful.
5 0
3 years ago
WAP to enter a multidigit number and find the sum of only even digits in a number.​
daser333 [38]

Following are the program to calculate even digits sum:

<h3>Program:</h3>

#include <iostream>//header file

using namespace std;

int main()//main method

{

   int a[10],s=0,i;//defining an array and an integer variable

   cout<<"Enter array values: ";//print message

   for(i=0;i<=9;i++)//defining a loop that input array value

   {

       cin>>a[i];//input array value

   }

   for(int i=0;i<=9;i++)//defining loop that check array value

   {

       if(a[i]%2==0)//defining if block that checks even number condition value

       {

           s=s+a[i];//adding even number value

       }

   }

   cout<<"The sum of even number is: "<<s;//print even number sum value

   return 0;

}

Program Explanation:

  • Defining a header file.
  • Defining the main method.
  • Inside the main method, an integer array "a", and two integer variable "s,i" is declared.
  • In the next step, a for loop is declared that input the array value, and after input value another loop is declared that check even number value in array.
  • In this loop it adds array value and after adding the value a print method is declared that prints its value.

Output:

Please find the attached file.

Find out more information about the even number here:

brainly.com/question/4184435

6 0
2 years ago
While typing,a red squiggly line appears. What does that signify?
raketka [301]
You maybe spelled something incorrect
6 0
3 years ago
Read 2 more answers
Priscilla is providing the junior analysts, in her firm, on the team with some real-world illustrations to explain some of the r
maksim [4K]

Answer:

d.

Explanation:

Based on the information provided within the question it can be said that the best reason in this scenario would be that the client has a number of very distinctive security requirements. A client with very clear and distinct security requirements would best be bypassed and satisfied by making an in-house software development that does not require outside access.

8 0
3 years ago
When you register to take classes, the registrar office pulls up a file full of information about you, including your contact in
poizon [28]
Database is where the information would be stored 
 <span />
7 0
4 years ago
Read 2 more answers
Other questions:
  • What is the process called that determines how bits are represented on the medium?
    9·1 answer
  • What are some examples of environmental technology
    8·1 answer
  • What happens to an LR if they troll/spam?
    13·1 answer
  • You are the network administrator for a small organization of 100 users. Users till now were freely browsing the Internet. You w
    8·1 answer
  • It takes 2.5 yards of material to make a dress harleys clothing design estimates that they can produce 48 dresses each week.if t
    15·2 answers
  • What is the first step in creating a maintenance ?
    7·1 answer
  • To speed up the display of graphics, a(n) ________ is integrated into some video cards. select one:
    12·1 answer
  • Only one person can receive the same email at the same time true or false
    10·1 answer
  • What does a hanging indent look like?
    7·1 answer
  • David plays racing games on his way to work. He uses the analog stick to navigate his vehicle through other artificial intellige
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!