Programming Logic
Palindrome Integer:
Create a Python source file called “PalindromeInteger.py” that has a main function and two user defined functions, reverse, and isPalindrome, to determine if a number is a palindrome (same as its reversal. E.g. 123454321). The two called user defined functions should have the following headers:
reverse(number) # return the reversal of the number
isPalindrome(number) # return a Boolean value True if number is a palindrome, False if not.
The program should ask the end user to enter an integer. The isPalidrome function is to call the reverse function, and report whether the integer is a palindrome. Any one-digit integer or negative integer should be rejected with the specific error message (negative or one digit), and then the program should ask the user to re-enter the integer. If the entry is a one-digit, negative integer (i.e. -3), it should be rejected with a “negative integer” message (see sample run below).
Hint: To reverse the digits of a number, try this routine:
result = 0
while (number != 0) : ## e.g. number = 123
## Iteration 1 Iteration 2 Iteration 3
remainder = number % 10 ## remainder = 3 remainder = 2 remainder = 1
result = result * 10 + remainder ## result = 3 result = 32 result = 321
number = number // 10 ## number = 12 number = 1 number = 0
## result contains the reverse of number
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme