Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions