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>data[i];//taking each point into array return n; } double squareSum(double data[], int numpts )//return the sum of the squares of the values in data { double sum=0.0; 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

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!