lecture_boolean_supplement

lecture_boolean_supplement - 2001-2002 Spring Week 4...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2001-2002 Spring Week 4+Michael Fung, CS&E, The Chinese University of HK1CSC1500 Computer Principles and ProgrammingHow to Program a Computer in C and General Introduction to ComputingLecture 4 Supplement2001-2002 Spring Week 4+Michael Fung, CS&E, The Chinese University of HK2Boolean/Truth/Logic ProcessingS()//A proposition may be true, false or undetermined, e.g.–true/false questions in examinations–You are a boy–Peter is 21 years old–Principal of no less than HK$30,000–ª?!2001-2002 Spring Week 4+Michael Fung, CS&E, The Chinese University of HK3Boolean ExpressionHow do they look like?–For numerics:3 >7–1 !=1oldWeight >=190.34Age ==180.7 * 0.7 ==0.49??? false ???–For characters:‘Z’ >‘A’‘A’ >‘0’??? true ???‘a’ >‘A’??? true ???2001-2002 Spring Week 4+Michael Fung, CS&E, The Chinese University of HK4Boolean Expressionint &;/*&&&*/¤= ¤P¡¶¢¢&;--- 8< ---------------------------&&¤P¡¶“[ &=false]&&¤P¡¶“|[ &=false]2001-2002 Spring Week 4+...
View Full Document

This note was uploaded on 05/23/2010 for the course COMPUTER S CSC1500 taught by Professor Fung during the Spring '10 term at CUHK.

Page1 / 14

lecture_boolean_supplement - 2001-2002 Spring Week 4...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online