Answer:
def analyze_text(sentence):
count = 0
e_count = 0
for s in sentence:
s = s.lower()
if s.isalpha():
count += 1
if s == "e":
e_count += 1
return "The text contains " + str(count) + " alphabetic characters, of which " + str(e_count) + " (" + str(e_count*100/count) + "%) are ‘e’."
Explanation:
Create a function called analyze_text takes a string, sentence
Initialize the count and e_count variables as 0
Create a for loop that iterates through the sentence
Inside the loop, convert all letters to lowercase using lower() function. Check each character. If a character is a letter, increment the count by 1. If a character is "e", increment the e_count by 1.
Return the count and e_count in required format
Answer:
You can use the task manager to see what programs are currently running.
Explanation:
Answer: Through the use of close-ended questions, for example a question with a YES/NO answer.
Explanation:
Close ended questions are questions in which a participant has already been provided with options to a question, and so the participants must choose from the options and cannot give an answer outside the options given.
Using this kind of question to modify the database schema would be helpful.
Therefore, in order to affirm that the volunteers are not allergic to dogs or cats, the close ended question "are you allergic to dogs or cats" can be used. The volunteers would be provided with a yes or no answer which they must choose from.
This would help in modifying the database schema while affirming whether the volunteers are allergic to dogs or cats.