Question: Assignment questions 1 and 2 >>a-ASimpleObject(4) ASimpleObject with properties: Value: 4 a.Value ans4 a-ASimpleObject(4.234) a-ASimpleObject with properties: Value: 4.2340 >a. Value ans 4.2340 >>b roundOff(a)

Assignment questions 1 and 2
 Assignment questions 1 and 2 >>a-ASimpleObject(4) ASimpleObject with properties: Value: 4

>>a-ASimpleObject(4) ASimpleObject with properties: Value: 4 a.Value ans4 a-ASimpleObject(4.234) a-ASimpleObject with properties: Value: 4.2340 >a. Value ans 4.2340 >>b roundOff(a) b-4.2300 >>c exponent(a, 3) 75.9019 OBJECT TO OPERATE ON ARRAYS u 0:.01:5.0 >>a ASimpleObject(u) Check all methods OBJECT TO OPERATE ON RANDOM ARRAYS >> u-0+5 *rnd( 10.1 ) % generate 10 random values between 0 to a-ASimpleObject(u) Check all methods ASSIGNMENT umodify the ASimpleObject, test for a single value (4.8746) to roundoff up to 3 spaces. Add a method to find squareroot of the value e Add a function to divide a value by another number 2) Create an object, MyFirstObject, to operate on a set of 5 values (1-2 digit numbers), that will a) calculate the sum of all values b) calculate the mean value and c) reorder the set of values in the descending order, top being the highest value

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!