Answer:
cout << "Num: " << songNum << endl;
cout << songNum << endl;
cout << songNum << " songs" << endl;
Explanation:
Since you did not provide the whole code and each statement has an error, it seems the name of the variable is songNum. Depending on these, you can see the corrections below:
cout << "Num: " << <u>songnum</u> << endl; → cout << "Num: " << songNum << endl;
The name of the variable must be written correctly.
- - -
cout << <u>int</u> songNum << endl; → cout << songNum << endl;
Declaration of the variable must be done before printing it.
- - -
cout << <u>songNum " songs" </u><< endl; → cout << songNum << "songs" << endl;
There must be "<<" signs between each part while printing.
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:
scotus[8]
Explanation:
scotus[8] gives the last name because there are 9 elements stored in scotus array
1. Data is easy to backup as all data is stored on the file server.
2.Network users can communicate by email and instant messenger.
Answer:The original choice to write apply_fg so that it accepts function arguments is a good one, because it increases interoperability. When the callable arguments to apply_fg use a single protocol, we can easily exchange them: #include <functional> float log2(float); int a = apply_fg(5.Of, int b = apply_fg(3.14f,
Explanation: