Question: Task 1 Print Heading Information ( see sample output to see what needs to be displayed ) Task 2 Have the user enter their name
Task Print Heading Information see sample output to see what needs to be displayed
Task Have the user enter their name in First Last format.
Use Data Validation to ensure that the value entered is not blank and does indeed include a space. Dont end the
program when an invalid input is encountered but provide an error message and allow the user to reenter the
information.
Once a valid name has been entered, divide the name into first and last names.
Display the index value showing the location of the space, the first name and the last name.
Task Using a loop, have the user enter some of their favorite holiday words or phrases. They may enter as many
wordsphrases as they wish but they must enter at least two
Your program must verify that at least wordsphrases have been entered.
For each wordphrase that is entered:
Display the wordphrase along with the number of characters that it contains.
Display the character within the wordphrase that has the smallest ASCII value and what its value is
Display the character within the wordphrase that has the largest ASCII value and what its value is
Calculate and display the ASCII total value for the wordphrase by finding the ASCII value of each
character and summing them up to give a total value.
You also need to find the longest wordphrase and the shortest wordphrase
Note: The sentinel value MUST NOT be processed as a valid wordphrase
Task Once all wordsphrases have been entered, your program should:
Display the longest wordphrase with a meaningful identify message.
Display the shortest wordphrase with a meaningful identify message.
Calculate and display the combined total number of characters for both the longest and shortest
wordsphrases with a meaningful identify message.
Display each character of the longest wordphrase individually in upper case from the first character
to the last character one character per line no identifying message here
Display each character of the shortest wordphrase individually in lower case from the last character
to the first character reverse order one character per line no identifying message here
Create a new string that shows the longest wordphrase in reverse order and display this new string
on one line with a meaningful identifying message.
Create a new string that includes every other character in the shortest wordphrase in reverse order
starting with the last character and display this new string on one line with a meaningful identifying
message.
Generate a Holiday Histogram Chart
o This chart should have entries along with the title.
o The first entry should be a line of asterisks where there is one for each character in the
longest wordphrase followed by a dash and the number of characters that are in that
wordphrase
o The second entry should be a line of asterisks where there is one for each character in
the shortest wordphrase followed by a dash and the number of characters that are in that
wordphrase
Search for a Given Letter:
o Ask the user to enter a letter. Validate that the input is not blank.
o Once a valid letter has been entered, count the number of times that the given letter appears in
both the longest wordphrase and the shortest wordphrase Count all occurrences of the letter
whether it is in upper or lowercase.
o Display your results with a meaningful identifying message.
Count the Number of Vowels:
o Determine the number of vowels that appear in the longest and shortest wordsphrases Both
upper and lowercase versions of the vowels should be included in the count.
o Display your results with a meaningful identifying message.
All output lines should be formatted to include a meaningful literal that describes what is being displayed EXCEPT the
two tasks that display individual characters per line. Please use simple stuff like while loops. for example, a i while i : if i : printib i while i : if i : printi i c i while i : if i : printi i a i while i : if i : printib i while i : if i : printi i c i while i : if i : printi i sentinel values, user confirmation. do not use floating point values in the code. ord, chr str functions can be used, escape sequences for special characters. use printing without the newline. You can use concatenation and repetition operators a i while i : if i : printib i while i : if i : printi i c i while i : if i : printi i you cna use the in and not in operators. index, slicing operators can be used. search and counting substrings. converting strings. stripping whitespace characters from a string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
