I don't think some will write the whole program here, but which part are you having trouble with?
Answer:
Answered below.
Explanation:
This answer is applicable to Linux.
There are several commands for copying files in Linux. cp and rsync are the most widely used. cp though, is the command used to copy files and their contents.
To copy a file named report1.txt to another file named report1uc.txt in the current directory, the following command is run.
$ cp report1.txt report1uc.txt
You can change the case of the strings in the file by using the tr command.
tr [:lower:] [:upper:]
For example,
$ echo brainly | tr [:lower:]. [:upper:]
Result is BRAINLY.
Answer:
Direct Mapped Cache
Explanation:
Given that a Direct Mapped Cache is a form of mapping whereby each main memory address is mapped into precisely one cache block.
It is considered cheaper compared to the associative method of cache mapping, and it is faster when searching through it. This is because it utilizes a tag field only.
Hence, The method of mapping where each memory location is mapped to exactly one location in the cache is "Direct Mapped Cache"
Answer:
C. Must be respected if we are to function as complete, self-governing agents.
Explanation:
<em>Privacy</em> is the boundaries that are set up to protect us against unwanted intrusion or interference, and it forms the basis of our interaction with the world.
<em>Privacy laws</em> are set-up to protect individuals from unwanted and unapproved access to privacy by individuals, organizations, and government. This is greatly adhered to in many countries.
To some extent, privacy is considered to overlap with security, because, when private information such as social security number, bank card details, account names, and details, etc. are accessed inappropriately, the individual's security is greatly compromised.
Therefore, privacy must be greatly respected if we are to function as complete, self-governing agents.
Answer:
punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']
def strip_punctuation(strWord):
for charPunct in punctuation_chars:
strWord = strWord.replace(charPunct, "")
return strWord
Explanation:
The function is defined with a single argument.
A for loop is ran to check each character of the the word.
If a punction mark is present as a character in the word, it is removed.
The same word is returned but without the punctuation marks.