Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
>>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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

ISBN: 0764549634, 9780764549632

More Books

Students also viewed these Databases questions