Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c++ program to load two column of numbers, do arithmetic operations to the data points by following the steps below carefully. Output the

Write a c++ program to load two column of numbers, do arithmetic operations to the data points by following the steps below carefully. Output the computed results to the specified output files Steps to complete. 0. Download the data file named Datafile1.data from the file area of the assignment. (Do not change the file name to .txt. Open the file in notepad (win) or view/vi/vim (linux) or any viewer of your choice if you like to see the data) 1. Create distinct functions for this project. 2. Define ONE class and use distinct instance of a class to store column1, column2, addition, multiplication. This should produce 4 class objects. 2. Load two columns of data points, each column into the storage area of its class instance where the data storage is a vector . 3. Add each position of the data and store it in another class instance where the data storage is a vector. 4. Multiply each position of the data and store it to another class instance where the data storage is a vector. 5. Write the results of addition and multiplication to a file named Output-MultAdd-class.data. Columns of the output file is value1, value2, Addition, Multiplication in a nicely formatted fashion. 6. Individual work expected. You can use the discussion board but do not post complete c++ code.

9.144548371 0.62072663 7.766500067 1.107554175 6.428523445 0.409904615 4.864271967 1.142139412 7.064106885 1.138740729 2.262955152 1.198965847 9.800966285 0.624420569 8.466914743 0.172152387 7.089199692 0.650149663 6.042680886 0.526675179 1.320701358 0.893658642 3.576178301 0.966546628 4.939756105 0.53583099 3.386905283 0.24428521 5.231554752 0.660683916 3.736280728 0.378121052 7.527971435 0.917047269 2.533630929 1.029850114 9.188222671 0.237647807 1.800088589 0.763132902 9.702171329 1.187835787

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel 2024 In 7 Days

Authors: Alan Dinkins

1st Edition

B0CJ3X98XK, 979-8861224000

More Books

Students also viewed these Databases questions