Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a function evenLetters ( ) that has a string parameter named word. The function will return the even letters in a word. The even

Create a function evenLetters() that has a string parameter named word. The function will return the even letters in a word. The even letters are the letters that have an even numbered index. If the word is less than 3 letters long, return a message "the word is too short".Create a function halfWord() which returns the second half of a word with each letter separated by a dash. Your function will accept a string parameter called word. If the word is less than 3 letters long, return a message "the word is too short". halfWord("Chetser")^(')t-s-e-r^(') halfWord("Rocky")^(1)c-k-y^(') halfWord("CDM")^(1)D-M^(1) halfWord("Hi")'Your word is too short'Write a function guess() that prompts the user to guess a number from 1 to 10. Your function will accept a parameter called answer which will be an int between 1 and 10. Your function will continue to prompt the user until they guess the correct number. Your function should use similar prompts shown below.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Design a job advertisement.

Answered: 1 week ago