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: Accelerometer
Explanation:
Accelerometer is the device that is present for orientation detection in smartphones.It helps to perceives the change happening in orientation and accordingly turns the smartphone screen.
- Smartphones use this devices for various purpose like for watching videos, playing phone games, typing etc.This devices functions through detecting motion of rotation or turning in phones .
External hardware/peripherals are external devices connected to a computer that extend it's functionality. Some common ones are:
1. Monitor - output
2. Keyboard - input
3. Speakers - output
4. Printer - output
5. Microphone - input
6. Mouse - input
Input is anything that's used to feed/put data into a computer. So for a keyboard that's which keys you're pressing, microphone that's sound data etc. Output is a<span>ny </span>computer<span>-generated data displayed on screen, printed on paper or in machine readable form, such as a disk.</span>
<span />
Visual aids are defined as charts, pictures or images that help to make a point or enhance a presentation, so I would say B. animation.
Hope this helps!!