Answer:
Check the explanation
Explanation:
public class EnhancedForExample {
public static void main(String[] args) {
int[] arr = {4, 2, 9, 1, 5, 7};
for(int num : arr) {
System.out.println(num);
}
}
}
Kindly check the attached image below for the code output.
Answer:
C. Accept the risk
Explanation:
The first option is close but might not be suitable for a small company considering it's cost.
The second option which is to spend fifty thousand dollars per year on a data loss prevention solution is projected to cost you more than the risk.
The third option isn't specific and lacks a course of action.
Answer:
It's purpose is to access a webpage.
Explanation:
A URL contains detailed information on the webpage such as, the domain name, protocol, and path. This information directs the browser to the desired page.
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:
office online
Explanation:
office online is a free online version of Microsoft office suite. it includes Microsoft word, Microsoft excel, Microsoft power point, one note. It allows users to create and edit files online.