Answer:
#include <iostream>
using namespace std;
void matrix(){
int row = 5, col = 6;
int myarr[row][col];
for (int i = 0; i < 5; i++){
for (int x = 0; x < 6; x++){
if (i == 0){
myarr[i][x] = (x+1)*(x+1);
}else if ( x == 0){
myarr[i][x] = (i+1)*(i+1)*(i+1);
} else if ( i == x){
myarr[i][x] = (i+1);
} else{
myarr[i][x] = myarr[i-1][x] + myarr[i][x-1];
}
}
}
for (int i = 0; i < 5; i++){
for (int x = 0; x < 6; x++){
cout<< myarr[i][x] << " ";
}
cout<< "\n";
}
}
int main(){
matrix();
}
Explanation:
The C++ source code defines a two-dimensional array that has a fixed row and column length. The array is a local variable of the function "matrix" and the void function is called in the main program to output the items of the array.
Answer:
Access control
Explanation:
A computer network connects two or more computer devices to communicate and share resources. When computers or workstations in a network are connected, data can be directly transferred from a source to a target workstation.
In most cases in an enterprise network, there is a need to restrict access to certain information or resources, so access control protocols are used to secure sensitive information from unauthorized view.
Explanation:
he increased the luminance of the pixels by pushing the slider to the extreme right, because auto contrast and auto will be able to adjust to effect if any important detail on the image may be lost in the process of adjusting the brightest slider
Answer:
- def process(lst1, lst2):
- newList = []
- for i in range(0, len(lst1)):
- sum = lst1[i] + lst2[i]
- newList.append(sum)
- return newList
-
- list1 = [1, 3, 5, 7, 9]
- list2 = [2, 4, 6, 8, 10]
- print(process(list1, list2))
Explanation:
Firstly, create a function process that takes two input lists (Line 1). In the function, create a new list (Line 2). Use a for loop to traverse through the elements of the two lists and total up the corresponding elements and add the sum to the new list (Line 3 - 5). At last, return the new list (Line 6).
In the main program, create two sample list and use them as arguments to test the function process (Line 8 - 9). We shall get the output [3, 7, 11, 15, 19].
All three JDBC, ADO.NET, and PHP programming languages are used for database connectivity and acess the records. JDBC, ADO.NET, and PHP programming language are used in web page development.
<u>Explanation:</u>
Each has their own plus and minus on programming languages.
JDBC is java based and proper database access driver has to be installed in web server hosting places. JDBC is faster in ‘connectivity and access the database. It supports most of the browser available in the market
ADO.NET is based on visual basic programming languages is used mostly in Microsoft edger and Microsoft internet explorer.
PHP to develop web pages and access database is very limited.
All depends on end user knowledge.
JDBC technology is better.