Arizona State University Palindrome String Function Python Program Project
Question Description
Introduction
This lab has two parts. For each part, submit a Python script named ASURITE_part#.py, where ASURITE is your ASURITE user name and # is the part of the lab your script file solves.
Please ensure that the output of your script matches the provided sample output.
Part 1: Palendrome
A string is a palindrome if it reads the same forward and backward. The words mom, dad, and noon, for instance, are all palindromes.
The problem is to write a program that prompts the user to enter a string and reports whether the string is a palindrome. One solution is to have the program check whether the first character in the string is the same as the last character. If so, then the program can check whether the second character is the same as the second-to-last character. This process continues until a mismatch is found or all the characters in the string are checked, except for the middle character if the string has an odd number of characters.
To implement this idea, you can use two variables, say low and high, to denote the position of two characters at the beginning and the end in a string s.
Write a function isPalindrome() that takes a string and return True if it is a palindrome, and False if not.
Write the main() function that takes the string from the user and passes it to the isPalindrome() function, then prints the appropriate message
Sample Output
Enter a string: noon
noon is a palindrome
Enter a string: moon
moon is not a palindrome
Part 2: Future tuition
Suppose that the tuition for a university is $10,000 this year and increases 7% every year. In how many years will the tuition have doubled?
Before you attempt to write a program, first consider how to solve this problem by hand.
Sample Output
Tuition will be doubled in 11 years
Tuition will be $21048.52 in 11 years
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you "A" results."