Question: QUESTION 1 1 Write assignment statements that perform the following operations with the variables a , b , and c : Adds 2 to a

QUESTION 1
1
Write assignment statements that perform the following operations with the variables a,b, and c :
Adds 2 to a and assigns the result to b
Multiplies b times 4 and assigns the result to a
Divides a by 3.14 and assigns the result to b
Subtracts 8 from b and assigns the result to a
QUESTION 2
Assume the variables result, w,x,y, and z are all integers, and that w=5,x=4,y=8, and z=2. What value will be stored in the result after each of the following statements execute?
result =x+y
result =z**2
result =yx
result =y-z
result =w??z
QUESTION 3
What would the following display?
a=5
b=2
c=3
result =a+b*c
print(result)
 QUESTION 1 1 Write assignment statements that perform the following operations

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!