1. Write a program having a String class that contains a function that can reverse the order of the characters in a string. A palindrome is a word or group of words that read the same forward and backward. For example, "madam" or "wow". Write a program that takes a string argument from the command line and returns TRUE if the string is a palindrome. 2. Write a function that takes as argument an array of integers and the size of the array and returns the average of the input values. O Int= avrg(int * array, int size)

icon
Related questions
Question
Write In c++
1. Write a program having a String class that contains a function that can reverse the
order of the characters in a string. A palindrome is a word or group of words that
read the same forward and backward. For example, "madam" or "wow". Write a
program that takes a string argument from the command line and returns TRUE if
the string is a palindrome.
2. Write a function that takes as argument an array of integers and the size of the array
and returns the average of the input values.
o Int= avrg(int * array, int size)
1/25/2023
CS Scanned CamScanner
Transcribed Image Text:1. Write a program having a String class that contains a function that can reverse the order of the characters in a string. A palindrome is a word or group of words that read the same forward and backward. For example, "madam" or "wow". Write a program that takes a string argument from the command line and returns TRUE if the string is a palindrome. 2. Write a function that takes as argument an array of integers and the size of the array and returns the average of the input values. o Int= avrg(int * array, int size) 1/25/2023 CS Scanned CamScanner
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer