Answer:
See explaination for the code
Explanation:
def wordsOfFrequency(words, freq):
d = {}
res = []
for i in range(len(words)):
if(words[i].lower() in d):
d[words[i].lower()] = d[words[i].lower()] + 1
else:
d[words[i].lower()] = 1
for word in words:
if d[word.lower()]==freq:
res.append(word)
return res
Note:
First a dictionary is created to keep the count of the lowercase form of each word.
Then, using another for loop, each word count is matched with the freq, if it matches, the word is appended to the result list res.
Finally the res list is appended.
Answer:
The answers are explained below
Explanation:
1) Identify the potential classes in this problem domain be list all the nouns
class Customer
class Acco unt
2) Refine the list to include only the necessary class names for this problem
the class customer is not necessary to solve the problem itself, therefore the only class could be the account class
3) Identify the responsibilities of the class or classes.
The responsibilities of the class account will be
* determination of the type of account--> Acc ount . type(char)
* deposit money into the account --> Acc ount . de posit(float)
* withdraw money into the account --> Acc ount . with draw(float)
* show balance of the account --> Acc ount . bal ance()
* generate interest --> Acc ount . int erest()
Please join the words together. I used spaces due to regulations
Answer:
Direct data access reduces the speed of retrieving data from memory or storage. Retrieving data and storing it in a cache memory provides direct access to data in the storage.
Explanation:
Sequential memory access, as the name implies, goes through the memory length location in search of the specified data. Direct memory access, provides a memory location index for direct retrieval of data.
Examples of direct and sequential memory access are RAM and tapes respectively. Data in sequential memory access can be access directly by getting data in advance and storing them in cache memory for direct access by the processor.
Answer: SAP and Salesforce.
Explanation:
Accenture's partnership with SAP and Salesforce is vital in helping clients progress toward the achievement of their environmental, social, and governance goals.
The partnership will help combine Salesforce Sustainability Cloud with the consulting practice of Accenture’s Sustainability Services. With this partnership, companies can embed sustainability into their business as companies are advised on how to move to low carbon energy, and cloud na how these can help improve their business.
Answer:
the output of the above program is
2 3
3 5
8
Explanation:
It seems the program is trying to pair two numbers into one and leaving the unpaired number (in a case of odd number of numbers) as a separate output.
This is why numbers 2 and 3 form 23, numbers 3 and 5 form 35 and 8 is another output of the program.