Strings Assignment
Everyone is to complete the first program and then choose either bronze, silver, or gold for a maximum of 10 marks.
Flowchart is required (5 marks)
Flowchart is required (5 marks)
Everyone:
Trivia Pursuit
Write a program that will ask the user at least 4 trivia questions where the answer requires you to compare strings, compare the input answer to the correct answer, and calculate the percentage of correct answers. Correct answers are NOT case sensitive.
Trivia Pursuit
Write a program that will ask the user at least 4 trivia questions where the answer requires you to compare strings, compare the input answer to the correct answer, and calculate the percentage of correct answers. Correct answers are NOT case sensitive.
The Name Game
The Name Game allows you to make a song out of anybody’s name. Ask the user to enter a name. Use the string functions to create a verse for the name provided by the user. Given the name Pearl, the output would look like this… pearl, pearl, bo-bearl banana-fana fo-fearl fee-fi-mo-mearl pearl! Listen to the song https://youtu.be/NeF7jqf0GU4 to get the idea. (7 marks) |
Write a sketch that asks the user for a password. If the answer is correct, display a message to the user that their answer is correct. If the answer is incorrect, display a message that the answer is incorrect and to try again. Allow the user three attempts before ending the program. You may choose the correct password value and must be case sensitive.
(8 marks) |
MadLibs
Look online for a "Mad Libs". Ask the user to the components that need to be filled in. Use a variety of String Methods to complete the mad libs. Display back to the user, the completed Mad Libs. Use the correct "articles" (a vs an) etc. https://www.madlibs.com/ (10 marks) |