subject

Write a c++ class called dataarray which internally stores an array of double
values and the length of the array. the class should have the following features:
ï‚· a constructor dataarray(int size) which creates the array using new,
given the specified array size,
ï‚· a constructor dataarray(double a[], int size) which creates the array
and initialises it using the values in the array passed into the constructor,
ï‚· a destructor which frees previously allocated memory,
ï‚· a method dataarray scaleby(double factor), which returns a new
dataarray object containing the data elements, scaled by the given factor.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Me if you do then you get 10 points and brainliest
Answers: 1
You know the right answer?
Write a c++ class called dataarray which internally stores an array of double
values and the l...
Questions
question
History, 25.07.2019 01:30
Questions on the website: 13722359