Answer and Explanation:
The ways in which a layered pattern make use of encapsulation and abstraction are as follows:
- This framework lays its focus mainly on the bundling of related functionalities inside an application into different layer that are vertically stacked over one another.
- Functionality in between each layer is related by common function or role.
- Communication in between the layers is clear and exact and is coupled loosely.
- Providing a layered structure to the application indirectly supports its maintainability and flexibility.
Encapsulation:
Since, features like data type, properties, methods or implementation while designing are not exposed at the boundary of the layer thus No assumptions are required for these features.
Abstraction:
The layered framework abstracts the entire system's view and provides adequate details for better understanding of the roles of each layer individually and the relation that exist between these layers.
Answer: C conventional hard disk drives
Explanation: hope this helps! (:
Answer:
Explanation:
The following code is written in Python. It continues looping and asking the user for an oligonucleotide sequence and as long as it is valid it outputs the reverse complement of the sequence. Otherwise it exits the loop
letters = {'A', 'C', 'G', 'T'}
reloop = True
while reloop:
sequence = input("Enter oligonucleotide sequence: ")
for x in sequence:
if x not in letters:
reloop = False;
break
if reloop == False:
break
newSequence = ""
for x in sequence:
if x == 'A':
newSequence += 'T'
elif x == 'T':
newSequence += 'A'
elif x == 'C':
newSequence += 'G'
elif x == 'G':
newSequence += 'C'
print("Reverse Complement: " + newSequence)