Evaluating Expressions
   Guest   
Q

 

Computer Programmes have to evaluate expressions

Study this sequence of pseudocode statements

DECLARE h, w, r, x, Perimeter, Area : REAL
DECLARE A, B, C, D, E : BOOLEAN
h ← 15.7
w ←  17.3
Perimeter ← (h + w) * 2
 r ← 100
Area ← 3.142 * r^2
 F ← r +  r  /  5  + 3
 C ← 12 + w
 x  ← r + r /10 + 9
 B ← NOT ( r < 100)

 

Write the values assigned to these variables: - [1 Mark each]

Perimeter  
Area
w
F

C
x
B



Out of / 7 marks

Your Work
You are not logged in! You can answer but you cannot save your work.    SIGN UP   SIGN IN
Times Taken 0  
 

RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
RadEditor's components - toolbar, content area, modes and modules
   
Toolbar's wrapper 
 
Content area wrapper
RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.
It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
Editor Mode buttonsStatistics moduleEditor resizer
  
RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.
   
 
Spin UpSpin Down