PYTHON PROGRAM Write a program that will ask a user to input a word and that will check if the word is a palindrome. A palindrome is a word that when spelled backwards is the same when read forwards After the check is performed, if the word is a palindrome, save it in a file called Palindromes.txt, and if the word isn’t a palindrome save it in a separate file called NotAPalindrome.txt Keep track of how many times a palindrome and non-palindrome word(s) have been entered and graph the results using a pie chart (the # of occurrences of each, two wedges in total),- save the image when the program terminates. The program should continue to run until the user inputs the word ‘quit’

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

PYTHON PROGRAM

  • Write a program that will ask a user to input a word and that will check if the word is a palindrome. A palindrome is a word that when spelled backwards is the same when read forwards
  • After the check is performed, if the word is a palindrome, save it in a file called Palindromes.txt, and if the word isn’t a palindrome save it in a separate file called NotAPalindrome.txt
  • Keep track of how many times a palindrome and non-palindrome word(s) have been entered and graph the results using a pie chart (the # of occurrences of each, two wedges in total),- save the image when the program terminates.
  • The program should continue to run until the user inputs the word ‘quit’
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
File Input and Output Operations
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT