Answer:
A is the input array
B = []
; %B is initially an empty array
for i = 1:length(A)/2 %iterates over A until the midpoint of A
B(i) = A(i) + A(end + 1 - i); %This adds the numbers from the first half and %second half of A, and stores in B
end
disp(B)
Answer:
Explanation:
The following code is written in Java. It creates the abstract dollar class that has two instance variables for the dollars and the coins that are passed as arguments. The test output can be seen in the picture attached below.
class Dollar {
int dollars;
double coin;
private Dollar(int dollar, int coin) {
this.dollars = dollar;
this.coin = Double.valueOf(coin) / 100;
}
}
37 most likely.
No programming language is specified, and you didn't put what the function is, so assuming it's already implemented, MAX should display the highest number.
Answer:
The metric column basically indicate the cost of the route in the routing table and also decide correct route in the routing table.
In the routing table, the lowest metric route is more preferable route as compared to others. In the networking, the routing table is basically used to store the data or information in the form of table in the router.
In the computer network, the routes are listed for the particular destination in which the routes are basically associate that particular routes.
Answer:
The object oriented software engineering approach is basically focus on the attention for capture the given structure and conduct the data frameworks in the form of small module which consolidates the information and the procedure.
The principle and aim of the Object Oriented Design (OOD) is that improving the quality of the system analysis and increase its productivity and more usable efficiently.
There are different phases in the object oriented software engineering approach are as follows:
- Firstly, we start analyze and define the particular system
- Then, construct the analysis model based on the above approach of the specific system.
- We verify the correctness of the system by using the testing.