Presentation V Computer Functioning By Teacher Julio Cesar Peñaloza Castañeda
5.1 Basic Computer Functioning A computer can be defined as an electronic device that accepts data from an input device, processes it, stores it in a disk and finally displays it on an output device such as a monitor. The following figure illustrates how this flow of information exists for all types of computers such as Personal Computers, Laptops, Palmtops etc.
Flow of Information in a Computer
Tables of Truth Values
Example 1 Proposition: P: 31 is a prime number: Q: The ice is hot: Determine the value of truth of P, Q, P ^ Q, P ∨ Q
Solutions P = 1 (Because 31 IS a prime number) Q = 0 (It’s false that the ice is hot) P ^ Q = 0 (Because the when one of the propositions of a conjunction is false the conjunction is false) P ∨ Q = 1 (Because the when one of the propositions of a disjunction is true the disjunction is true)
Example 2 Proposition: P: There is life on the moon Q: = 3 Determine the value of truth of P, Q, P ∨ Q, P^Q, P → Q, P↔Q
Solutions P=0 Q=1 P ∨ Q=1 P^Q=0 P → Q=1 P↔Q = 0
Example 3 Proposition: P: There are elephants in Mars Q: The Fire is cold R: 2+ 1 = 4 Symbolize and validate the following propositions: S: If there are elephants in Mars and the fire is cold, then = 4 T: There are elephants in Mars and, fire IS cold so = 4
Solutions S = (P ^ Q) → R = 1 T = P ^ (Q →R) = 0