Answer:
69.54
Explanation:
A power ratio of 9000000:1 corresponds to 69.54 dB.
The calculation is presented below:
Formula for calculating Power ratio (db) = 10 * log [P(out)/P(in)]
Since the given ratio is 9000000:1, substituting in the formula gives us 10 * log (9000000/1)
Note that log 9000000 = 6.954
Therefore, 10 * log (9000000/1) = 69.54
Hence the required power ratio in db is 69.54 db.
Answer:
Explanation:
The following Python program uses a combination of dictionary, list, regex, and loops to accomplish what was requested. The function takes a file name as input, reads the file, and saves the individual words in a list. Then it loops through the list, adding each word into a dictionary with the number of times it appears. If the word is already in the dictionary it adds 1 to its count value. The program was tested with a file named great_expectations.txt and the output can be seen below.
import re
def wordCount(fileName):
file = open(fileName, 'r')
wordList = file.read().lower()
wordList = re.split('\s', wordList)
wordDict = {}
for word in wordList:
if word in wordDict:
wordDict[word] = wordDict.get(word) + 1
else:
wordDict[word] = 1
print(wordDict)
wordCount('great_expectations.txt')
Answer:
It is a spreadsheet application. the second should be leadership