Answer:
Explanation:
bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++) {
if (str [i] != str [length – 1 – i]) {
return false;
}
}
cout << str << "is a palindrome";
return true;
}
Answer:
press flash
Explanation:
its on the bottom row on the remote on mine
You should have bullets in a text box in case you have a list of stuff. For example:
Computer Parts
.Tower
.Monitor
. Mouse
.Printer
In this question, when Lilyana write a program to calculate the area, <em><u>she forgot to call the method</u></em> that's why it will not give any output. so, complete code with the output can be defined as follows:
Program Explanation:
- Defining a method "area" that takes two variables "length, height" in the parameters.
- Inside the method, a variable "area" is declared that calculates the area by multiplies "length and width".
- After calculating the area a return keyword is used that returns its value.
- Outside the method, a print method is declared that calls the area method by accepting value into its parameters.
Program:
def area(length, height):#defining a method area that takes two parameters "length, height"
area = length * height#defining a variable area that calculates the area by multiplies length and width
return area#using return keyword that returns area value
print(area(6,8))#using a print method that calls area method by accepting the value
Output:
Please find the attached file.
Learn more:
brainly.com/question/8908120