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
adell [148]
3 years ago
11

The program that solves problem 2 (a) on p.275 should be named as proj4_a.c. It must include and implement the following functio

n prototypes to solve problem 2 (a). void get_msg(char [], int *); bool palindrome(char [], int);
Computers and Technology
1 answer:
avanturin [10]3 years ago
7 0

Answer:

#include <iostream>

#include <cstring>

using namespace std;

bool isAPalindrome(char* palindrome);

int main()

{

   char palindrome[30];

   bool palindrome_check;

   cout << "Please enter an word or phrase.\n";

   cin.getline(palindrome, 30);

   palindrome_check = isAPalindrome(palindrome);

   if (palindrome_check = true)

   {

       cout << "Input is a palindrome\n";

   }

   else

   {

       cout << "Inputis not a palindrome\n;";

   }

system("pause");

return 0;

}

bool isAPalindrome(char* palindrome)

{

   char* front;  

   char* rear;  

front = palindrome;// starts at the left side of the c string

rear = (palindrome + strlen(palindrome)) - 1;//starts at the right side of the c-string. adds the c string plus the incriment value of s

while (front <= rear)

{

 if (front = rear)

 {

  front++;

  rear--;

 }

 else

 {

  return false;

 }

}

   return true;

}

You might be interested in
Which of these is the most common type of retirement plan?
barxatty [35]

Answer:

The correct answer is B. The most common type of retirement plan is ERISA.

Explanation:

The dominant pension system in the United States is funded pension, which consists of retirement savings plans, governed by section 401 (k) of the Internal Revenue Code, and pension funds. Workers thus secure themselves on a private basis.

In the US pension system, there are several insurance plans:

-Social security: a federal pension instituted during the New Deal, based on the number of years worked, contributions paid and inflation. In the late 1990s, the federal government spent $ 289 billion on the mandatory retirement system.

-Pensions: Paid by large corporations and governments according to the Employee Retirement Income Security Act (ERISA).

-Individual Retirement Account (IRA), consisting of retirement savings plans and pension funds.

-The poorest pensioners receive additional federal support (OASDHI) and care (Medicare).

4 0
3 years ago
How to declare a double variable named total with an initial value of 34.45 ?​
MArishka [77]

Answer:

double total =34.45; And for the photo: int num = -5;

3 0
4 years ago
Executives of a company deal less with details of the operational activities and deal more with the higher meaningful aggregatio
mylen [45]

Answer:

3. Granularity

Explanation:

Granularity's concept is representing the level of how do we store the data in our database.

If the data are detailed, we can resume the data until get a granularity more strong for our analysis.

For example:

We could store data year by year of our costumers, if want to get more granularity, we could store data month by month, also we could get specific data like how often our customers visit the business or how often our customers buy in a category product.

4 0
3 years ago
This type of connection uses radio waves to connect devices on a network.
Tresset [83]
I believe data carries radio waves
5 0
4 years ago
Read 2 more answers
What type of document would you use the landscape page orientation
dolphi86 [110]
I would prefer you use documents...
4 0
4 years ago
Other questions:
  • There’s No Difference In Security If You Use A Public PC Or Your Own Computer.
    6·1 answer
  • What state yall be livin in?
    15·2 answers
  • The main purpose of a constructor is to initialize the data members at the moment that an object is created. true or false?
    8·1 answer
  • When working with numerical data and creating charts, it makes sense to use microsoft: power point. word. access. excel.?
    9·1 answer
  • A license plate consists of 2 letters followed by 1 digit. How many license plates are possible if the first letter can be any l
    13·1 answer
  • Files exist on ____ storage devices, such as hard disks, dvds, usb drives, and reels of magnetic tape.
    11·1 answer
  • Which of the following comments are correct? Select all that apply.
    14·1 answer
  • A.
    11·1 answer
  • Technology that transfers page images composed inside a computer directly to printing plates is called:
    10·1 answer
  • Ed wants to make sure that his system is designed in a manner that allows tracing actions to an individual. Which phase of acces
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!