Question: Write a C++ program to read two columns of numbers, do arithmetic operations as described below and output the original values and computed values to

Write a C++ program to read two columns of numbers, do arithmetic operations as described below and output the original values and computed values to the screen as table

a). Download the dataFile1

b). Read two columns of data into vector(s)

c). Output two columns values to the screen

c). Multiple the first column by 2 and the second column by 3

d). Store the new values in separate vector(s)

c). Print out the new values to the screen

dataFile1.txt

1 3 2 6 3 9 4 12 5 15 6 18 7 21 8 24 9 27 10 30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!