Skip to main content

Posts

Showing posts with the label Class 11

File Handling in Java ISC Class 11

Binary File For Creating/Storing Information into the file FileOutputStream fout = new FileOutputStream(new File("filename",true)); //true for append DataOutputStream ffout = new DataOutputStream(fout); Functions to store data: Integers -  ffout.writeInt(); Floating -  ffout.writeFloat(); Double   -  ffout.writeDouble(); char     - ffout.writeChar(); String   - ffout.writeUTF(); For reading the file  FileInputStream fin = new FileInputStream(new File("filename")); DataInputStream ffin = new DataInputStream(fin); Functions to read data: Integers -  ffin.readInt(); Floating -  ffin.readFloat(); Double   -  ffin.readDouble(); char   ...

Propositional Logic Notes Class 11 ISC

The concept of proposition means any statement which gives result either true or false. p: "Today is cold day" so p is the propositional constant and the rest is the statement.  There are two types of proposition: 1) Simple: Example is: p: "Today is holiday" q: " Dad is at home" 2)Complex/Compound: When we are combining multiple propositional statements into a single statement using logical connectives that is known as compound proposition. p and q: " Today is holiday and Dad is at home" over here"and" is the logical connective. There a multiple logical connectives such as: 1)Conjunction (and)  . / ^ 2)Disjunction (or) +/v 3) Negation (not) ~  4) Implication(if ....then) -> 5) Equivalence/Biconditional (if and only if) <=> or <-> 1) Conjunction   ------------------------ p: "Today is holiday" q: " Dad is at home" p^q: "Today is holiday and Dad is at home" Truth Table p.        q.    ...