Vai al contenuto

Week 7

Text Challenge 1

Back in Week 1 the challenge was to write a program that reversed a word.
In this new challenge you have to write a program that will test if a given word is a palindrome (the same backwards as it is forwards)

Example

INPUT: racecar
OUTPUT: That is a palindrome

Example

INPUT: chameleon
OUTPUT: That is not a palindrome

Extension: Modify your program so that case, spaces and punctuation are ignored.

Example

INPUT: Madam, I’m Adam
OUTPUT: That is a palindrome

Text Challenge 2 Discussione

Write a program that will reverse each individual word in a sentence but leave the order of words unchanged.

Example

INPUT: Hasta la vista
OUTPUT: atsaH al atsiv

Graphical Challenge

In Week 6, Graphical Challenge 1 asked you to write a program to display a bar chart for data input by the user.
Modify this program to display the data as a Pie Chart.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.