Array size (positive integer value) Array elements (positive integer values) Write a program that prints whether the array is a palindrome number. A palindrome number is a number that reads the same backwards and forwards. You must implement your solution following the requirements below: a) Do not use cout to print a message before reading the input from STDIN. b) Read the input in the main function. c) Implement a function to print whether all the elements of the array form a palindrome number. You must use a pointer to an integer variable to implement your function. You cannot use square brackets (array notation) inside the function.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 1PP: (Statistics) a. Write a C++ program that reads a list of double-precision grades from the keyboard...
icon
Related questions
Question

can someone help me with this in C++

Given the following input:

Array size (positive integer value) Array elements (positive integer values) Write a program that prints whether the array is a palindrome number. A palindrome number is a number that reads the same backwards and forwards. You must implement your solution following the requirements below:

a) Do not use cout to print a message before reading the input from STDIN.

b) Read the input in the main function.

c) Implement a function to print whether all the elements of the array form a palindrome number. You must use a pointer to an integer variable to implement your function. You cannot use square brackets (array notation) inside the function.

You can assume that the input will always be valid.

Input Output
5 1 2 3 2 1 Palindrome number
5 1 2 1 4 1 Not a palindrome number
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr