Question: 1 . ( 1 mark ) Set the number of digits displayed to 1 6 . 2 . a ) ( 2 marks ) Choose

1.(1 mark) Set the number of digits displayed to 16.
2. a)(2 marks) Choose any number from 1 to 20 and assign it to an object, a. Print the object (i.e.
type the variable name into your script so when it is run the value is displayed).
b)(4 marks) Create an object b by doubling the value of a, adding 10, and dividing by 2. Make
sure to follow the correct order of operations. Print the object b.
c)(2 marks) Create a new object c with the value b a. Print c.
3. a)(1 mark) Create a vector, x, of the digits 20 through 50.
b)(1 mark) Create a vector, y, of the digits 30 through 60.
c)(1 mark) Create a vector, z, and give it the value x + y.
d)(1 mark) Print the first value of z.

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!