0% found this document useful (0 votes)
69 views3 pages

Set Get Set Get: D 342/17 32 D 85/5! 21&&true X 84/24 y !false&&true D X 30&&y

This document demonstrates the use of a complex calculator that can perform several types of operations and uses various operators. The calculator evaluates expressions involving division, modulo, comparison operators like greater than and less than, logical operators like AND and OR, and precedence of operations. Examples shown include evaluating expressions involving integers, decimals, booleans and variables to test the calculator's functions.

Uploaded by

jcvoscrib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views3 pages

Set Get Set Get: D 342/17 32 D 85/5! 21&&true X 84/24 y !false&&true D X 30&&y

This document demonstrates the use of a complex calculator that can perform several types of operations and uses various operators. The calculator evaluates expressions involving division, modulo, comparison operators like greater than and less than, logical operators like AND and OR, and precedence of operations. Examples shown include evaluating expressions involving integers, decimals, booleans and variables to test the calculator's functions.

Uploaded by

jcvoscrib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Complex Calculator with several types and operators (non graded activity)... https://courses.edx.org/courses/course-v1:UC3Mx+IT.1.1x+3T2015/cou...

1 de 3

d = 342/17>=32;
d = 85/5!=21&&true;
x = 84/24;
y = !false&&true;
d = x<=30&&y;

d = x<=30&&y;

true
set

set

get

get

*
>=

>

==
!=

true
&&
false

||

<=
<

27/12/2015 10:18 p.m.

Complex Calculator with several types and operators (non graded activity)... https://courses.edx.org/courses/course-v1:UC3Mx+IT.1.1x+3T2015/cou...

2 de 3

342 / 17 >= 32

342 / 17 = 20.11

20.11 >= 32

false

85 / 5 != 21 && true

85 / 5 = 17

17 != 21

true

true && true

true

x <= 30 && y;
x = 84 / 24;
y = !false && true;

x = 84 / 24 = 3.5

3.5 = x <= 30

true

y = !false && true = true && true = true

true && true

true

27/12/2015 10:18 p.m.

Complex Calculator with several types and operators (non graded activity)... https://courses.edx.org/courses/course-v1:UC3Mx+IT.1.1x+3T2015/cou...

3 de 3

27/12/2015 10:18 p.m.

You might also like