Write a program that will create a code for any movie when entered with its year of release.
input a movie title and its year of release
create movie code that has the following:
first three letters for the movies title
last two digits of the year of release
output the final movie code to the user
screen output:
Back to the future
1985
Bac85
Write a program which asks a student for their first, surname and start date then generates a username.
first initial
dot .
full surname
dot .
year from start date
screen output:
Input firstname: robert
Input surname: mortimer
Input date started: 05/09/09
Your new username is: r.mortimer.09
Stretch: Ensure regardless of what case of data was entered that the username is all in lowercase.
Pig Latin is a game of alterations played on the English language.
Write a program that will:
input a word from the user
the word will then be modified in order to be converted into Pig Latin
output the translated word on screen
Method of translation:
1. Take the first letter Banana --> anana
2. Add a hyphen anana --> anana-
3. Put the first letter after the hyphen anana- --> anana-B
4. Add ay at the end of the word anana-B --> anana-Bay
Write a program that will:
input a word from the user
the word will be reversed
output reversed word on screen
Stretch: Further develop your program to identify if the word input by the user is the same forward as it is backwards (palindrome).
Write a program that will take any sentence and identify how many words are present.
input a sentence from a user
evaluate the sentence
output the number of words present in the sentence
Hint: Look for spaces / full stops in the string to identify the words and the end of the sentence.
screen output:
Input a sentence: Hello my name is ted
The sentence entered contains 5 words