Answer:
$340,000 is there net worth
Explanation:
$200,000+ $140,000 = $340,000
Answer:
thermometer , petrol pump
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)
#include <iostream>
using namespace std;
int main() {
const int SCORES_SIZE = 4;
int oldScores[SCORES_SIZE];
int newScores[SCORES_SIZE];
int i = 0;
oldScores[0] = 10;
oldScores[1] = 20;
oldScores[2] = 30;
oldScores[3] = 40;
/* Your solution goes here */
for (i = 0; i < SCORES_SIZE; ++i) {
cout << newScores[i] <<" ";
}
cout << endl;
return 0;
}
Answer:
ifstream inputFile;
inputFile.open("Friends.txt");
Explanation:
Though, the programming language is not stated, questions like this are often from C++.
The first statement defines the ifstream object using the following syntax.
ifstream [object_name]
In this case, the object name is inputFile
So, the syntax becomes
ifstream inputFile;
The next line opens a file using the following syntax.
[object_name].open("Filename")
Here, object_name is inputFile and filename is Friends.txt
So, the open statement becomes
inputFile.open("Friends.txt")