Question: #include #define max 1000//defining max size as variable size arrays are not allowed in c++ using namespace std; int readData(double data[]) {//function to read points
#include
#define max 1000//defining max size as variable size arrays are not allowed in c++ using namespace std; int readData(double data[]) {//function to read points to array and return size int n; cout << "enter number of points" << endl; cin>>n;//taking number of points for(int i=0;i int main() { double a[1000]; cout << "Hello World" << endl; int n=readData(a); cout<<"entered points:"; for(int i=0;i //THIS CODE ABOVE WORKS FINE I NEED TO ADD BUBBLE SORT TO SORT THE DATA FROM SMALL TO LARGE PLEASE TRY TO USE COMMENTS TO EXPLAIN THE CODE++++++++++++++++++++++++++++++++++++++++++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
