Unformatted text preview: Program Structure III
//c a lc u la te a ve ra g e o f m a rks : va r a = ( p a rs e Int(d o c u m e nt.F1 .C Ma rk.va lu e ) + p a rs e Int(d o c u m e nt.F1 .EMa rk.va lu e ) + p a rs e Int(d o c u m e nt.F1 .MMa rk.va lu e ) ) / 3 a le rt(a ) Example: a = 3 ; b = 4 ; a = 3 ; b = 4 ; a le rt(a +b ) ; The invisible semicolons are automatically inserted. //c a lc u la te a ve ra g e o f...
View Full Document
This note was uploaded on 03/10/2012 for the course CS 1301 taught by Professor Dr.wong during the Winter '08 term at City University of Hong Kong.
- Winter '08
- Computer Programming