195k views
16 votes
Calculate the value of z. Given v=4, w=5, x=8, y=2z= (v+ w) * x / y;print (“value of z is “, z)

1 Answer

7 votes

Answer:

value of z is 36.0

Step-by-step explanation:

Given


v = 4\\\\w = 5\\\\x = 8\\\\y = 2\\\\z = (v+2)*x/y

Required

Print the value of z

To answer this, I will make use of Python and also provide a manual solution:

The program (in python) is as thus:

v = 4

w = 5

x = 8

y = 2

z = (v + w) * x/y

print (“value of z is “, z)

Manually, we have:

z = (v + w) * x/y

z = (4 + 5) * 8/2

Solve the bracket

z = 9 * 8/2

z = 9 *4

z= 36

Either ways, the value of z is 36

User DinhNgocHien
by
5.7k points