Ask your own question, for FREE!
Mathematics 20 Online
jagr2713 (jagr2713):

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 result in each of the followingstatements? a. Set result = x + y b. Set result = z * 2 c. Set result = y / x d. Set result = y - z

jagr2713 (jagr2713):

@tkhunny @mathmale @Michele_Laino

OpenStudy (tkhunny):

You have to do the first one.

jagr2713 (jagr2713):

Oh so we are not picking a,b,c,d?

OpenStudy (tkhunny):

Is "result" also integer or will some conversion occur?

OpenStudy (tkhunny):

I think not. Do all four.

jagr2713 (jagr2713):

so #1 will be Set result = int(12)

OpenStudy (tkhunny):

That's what I would guess unless you know something about your registers and the always keep signed floating point, or something.

jagr2713 (jagr2713):

Oh, can you help me with one more @tkhunny

OpenStudy (tkhunny):

Separate post, please.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!