Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 & 2 > a Value 4.2340 beroundoff(a) b: 4.2300 classdef ASimpledbject properties >>cexponent(a, 3) Value methods OBJECT TO OPERATE ON ARRAYS function obj

1 & 2
image text in transcribed
> a Value 4.2340 beroundoff(a) b: 4.2300 classdef ASimpledbject properties >>cexponent(a, 3) Value methods OBJECT TO OPERATE ON ARRAYS function obj " ASmpleobject(val) i nargin>e u001:5.0 if smaneric (val) aASimpleObjectu) obj.Value val, Check all methods OBIECT TO OPERATE ON RANDOM ARRAYS >> us0+5. rand( 10,1) % generate 10 random values between 0 to 5 else rror('Value must be nuneric' aASimpleObjectfu Check all methods end function rs roundoff (obj) reround( [obj.value].2) ASSIGNMENT end function multiplyty(obj,n) 1 modify the ASimpleObject, test for a single value (4.8746) a. to roundoff up to 3 spaces end function r exponent (obj,n) b. c. Add a method to find squareroot of the value Add a function to divide a value by another number I r [obj.value)-n 2) Create an objedt, Myfisrobject to o 5 values (3-2 digit numbers, that wil end 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: 3

blur-text-image

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

How autonomous should the target be left after the merger deal?

Answered: 1 week ago