subject
Engineering, 10.04.2020 20:25 bryantfoster

If the vector oldData is the same as the vector newData, print "Data matches!" ended with a newline. Otherwise, assign oldData with newData. Ex: If oldData = {10, 12, 18} and newData = {25, 27, 29, 23}, then oldData becomes {25, 27, 29, 23}.

Only enter the Solution Part

#include
#include
using namespace std;

int main() {
vector oldData(3);
vector newData(4);
unsigned int i = 0;

oldData. at(0) = 10;
oldData. at(1) = 12;
oldData. at(2) = 18;

newData. at(0) = 25;
newData. at(1) = 27;
newData. at(2) = 29;
newData. at(3) = 23;

// Enter Solution here

for (i = 0; i < oldData. size(); ++i) {
cout << oldData. at(i) << " ";
}
cout << endl;

return 0;

}

ansver
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, yasminothman02
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
image
Engineering, 04.07.2019 18:10, 0436500
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
image
Engineering, 04.07.2019 19:20, molly7654
Brief discuss how the presence of dislocations in crystal structures can be an advantage and a disadvantage to engineer and designers.
Answers: 3
image
Engineering, 06.07.2019 03:20, mpete1234567890
Asimply supported beam abc of length l has ab of length hl and second moment of area / and bc of length hl and second moment of area i2. determine the strain energy stored in the beam when it is subject to a vertical load f at its midpoint and the consequential central deflection.
Answers: 2
You know the right answer?
If the vector oldData is the same as the vector newData, print "Data matches!" ended with a newline....

Questions in other subjects:

Konu
Physics, 11.11.2020 09:50
Konu
Social Studies, 11.11.2020 09:50
Konu
Mathematics, 11.11.2020 09:50