Question: please use C++ A software developer initially starts out with a list of doubles. This is basically an array. The list start off with the
A software developer initially starts out with a list of doubles. This is basically an array. The list start off with the following: 2.004.005.006.0010.0010.0110.05 The developer is out on vacation. You are now tasked with following: 1. All computed results will go in a vector for string data types; starting with the first value in an array 2. If any of the double values have a fraction, the computed value is 1 (an int) 3. If a double value has no fraction, the double values becomes an int. 4. store each computed value in a string, and then store the string in the vector 5. Print the initial array values and then the vector values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
