Question: The programming language is C++ Problem 7.7 Write a function that reverses the values of an array of floating-point data: void reverse( double a[], int
reverse (double a, int a.size)) 2 of 3 Problem P7.7 Write a program that reads in a list of numbers contiguously in an array double x[100] The user may enter no more than 100 numbers (but less is ok). Let x.size be the number of numbers entered by the user. Note x [100] serves as a storage and x.size indicates the PIC10AWINTER 2018 number of elements in the array x which are meaningful. . Then apply the function reverse to the array x to revert x.size numbers. Then displ the numbers using the delimiter",". . Implement a loop in which the above actions are repeated until the user requests to quit . Submit the solution in the file named hmw.6.2.cpp . Sample input-output ClWi exe nter a list of nunbers: 1 2 3 4 Reversed list: 4. 3. 2. 1 Continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
