Answer:
def wordLineCount(file):
dic = {}
with open(file,'r') as file:
text = file.read()
text = text.strip().split()
for word in text:
if word in dic:
dic[word] += 1
else:
dic[word] = 1
return dic
print(wordLineCount('ben.txt'))
Explanation:
The programming language used is python.
The program starts by defining the function, an empty dictionary is created to hold the words and the number of times that they occur. the with key word is used to open the file, this allows the file to close automatically as soon as the operation on it is finished.
The data in the file is read to a variable text, it is striped from all punctuation and converted to a list of words.
A FOR loop and an if statement is used to iterate through every word in the list and checking if they are already in the dictionary. if the word is already contained in the dictionary, the number of occurrences increases by one. otherwise, it is added to the dictionary.
check the attachment to see code in action.
<u>Explanation:</u>
Cloud Computing is the use of hardware and software to deliver a service over a network means on the internet. With cloud computing, users can access files and use applications from any device that can access the Internet. An example of a Cloud Computing provider is Email.
When you have a lot of data you can upload on the cloud server. To upload your data on cloud you must have a account and permission to save and upload your data.
<u>Example is:</u> data storage sites
Answer:
Once more that one person answer, you will get an option next to the heart and the star that would look like a crown
Explanation:
That is how you do it.
QUESTION NO. 1 -
A. Cloud computing.
QUESTION NO. 2 -
C. Social networking.
QUESTION NO. 3 -
D. Task list.
QUESTION NO. 4 -
D. Powerpoint.
QUESTION NO. 5 -
B. Sandie should share the document in OneDrive and give her sister permission to edit the document.
QUESTION NO. 6 -
C. The design and arrangement of items for efficiency and safety.