Yes :) I totally agree with the person above me ^
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.
A bachelor's degree is required for some computer support specialist positions, but an associate's degree or postsecondary classes may be enough for others.
Answer:
The correct program to this question as follows:
Program:
//header file
#include <stdio.h> //include header file for using basic function
int main() //defining main method
{
int amountToChange=19,numFives,numOnes; //defining variable
numFives = amountToChange/5; //holding Quotient
numOnes = amountToChange%5; //holding Remainder
printf("numFives: %d\n", numFives); //print value
printf("numOnes: %d\n", numOnes); //print value
return 0;
}
Output:
numFives: 3
numOnes: 4
Explanation:
In the above program first, a header file is included then the main method is declared inside the main method three integer variable is defined that are "amountToChange, numFives, and numOnes", in which amountToChange variable a value that is "19" is assigned.
- Then we use the numFives and the numOnes variable that is used to calculate the number of 5 and 1 , that is available in the amountToChange variable.
- To check this condition we use (/ and %) operators the / operator is used to hold Quotient value and the % is used to hold Remainder values and after calculation prints its value.