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:
1. would be B.
2. would be D
3. May I ask if it can be multiple answers?
Explanation:
1. In coding a if statement has to follow if something is true or not. If we are talking about a if and then statement it will skip that block and move to the next block of the "then" part of the "if then" Statement if the first part is reported false
2. This is a easy one, so it has to be either a 3.25 GPA or higher or they have to have either 100 hours or more.
3. waiting for a comment back :)
Answer:
Check Explanation.
Explanation:
Immediately there is a connection between your laptop and the wireless hotspot, data will be transferred via the Physical layer that will be used for encoding of the network and the modulation of the network and that layer is called the OSI MODEL.
Another Important layer is the APPLICATION LAYER in which its main aim and objectives is for support that is to say it is used in software supporting.
The next layer is the PRESENTATION LAYER which is used during the process of sending the e-mail. This layer is a very important layer because it helps to back up your data and it is also been used to make connections of sessions between servers of different computers
Answer:
The program to this question can be described as follows:
Program:
def ilovepython(): #defining a method
for i in range(3): #defining a loop that print messasge three times
print('I love Python')#print messasge
ilovepython() #calling the method
Output:
I love Python
I love Python
I love Python
Explanation:
Description of the python program can be described as follows:
- In the above Python program, a method "ilovepython" is defined, inside the method a for loop is used, inside the loop print method is used, that print the message "I love Python".
- In python for loop is used to iterate over series and we can execute a set of statements with the loop, tuple, series, once for each element in the list.
Answer:
Explanation:
a)In this process, the power, electricity, water, etc consumed by the Production department are assembled.
b)In this department, the products are processed and shipped to the retail customers. The costs required for shipping the Latitude line of products comes under the Distribution department.
c)The activities like planning, designing, white box and black box testing are done in the Design process of a product.
d. Salary of computer scientist working on the next generation of servers related to Development.
e. Cost of Dell employees' visit to a major customer to demonstrate Dell?s ability to interconnect with other computers related to Customer Service or Marketing.
f)The cost required for testing the products comes under the Research and development.
g)Marketing department includes the costs of market research, selling the products and other business costs.
h)Purchasing the cartridges from the external suppliers comes under the production department.