Answered step by step
Verified Expert Solution
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
> 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started