Share
Go down
Guru
Posts : 10
Join date : 2018-08-07
View user profile

Re: Understanding AND Logic

on Tue Aug 07, 2018 9:33 am
Admin wrote:
airojames wrote:yes! may paexample si sir!
para higit na maunawaan ng mambabasa
idol ko talaga si sir Shocked Shocked Shocked Shocked Shocked
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Tue Aug 07, 2018 9:40 am
althea faye wrote:
Admin wrote:
airojames wrote:yes! may paexample si sir!
para higit na maunawaan ng mambabasa
idol ko talaga si sir Shocked Shocked Shocked Shocked Shocked
Laughing
Guru
Posts : 10
Join date : 2018-08-07
View user profile

Re: Understanding AND Logic

on Wed Aug 08, 2018 7:32 am
Magagamit rin ang mga logic na ito in searching and selecting your data in your database. For example, in application for NOT logic, you can use it when you want to search for inactive members.
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Wed Aug 08, 2018 7:34 am
nyela wrote:Magagamit rin ang mga logic na ito in searching and selecting your data in your database. For example, in application for NOT logic, you can use it when you want to search for inactive members.
Good point ma'am.
avatar
Guru
Posts : 10
Join date : 2018-08-11
View user profile

Re: Understanding AND Logic

on Sat Aug 11, 2018 6:59 pm
Luwiezz wrote:Sir is it possible na magamit sa iisang program ang NOT, OR, AND? Or NOT, OR or NOT, AND?
sa pagkaka alam ko pre lahat naman ng boolean expression pwede siya magamit sa iisang program.
avatar
Guru
Posts : 10
Join date : 2018-08-11
View user profile

Re: Understanding AND Logic

on Sat Aug 11, 2018 7:01 pm
James Navarro wrote:Kapag AND logic, kailangan mameet yung two (or more??) requirements para magproceed. otherwise, magloop. Kapag OR naman, kahit isa lang mameet na condition? Tama po ba mga ssob?

Sent from Topic'it App
tama pre . pero sa and logic kasi, only two lang yung kailangan ma meet kasi dalawa lang naman yung choices na patutunguhan sa decision kapag sa and logic.
avatar
Guru
Posts : 11
Join date : 2018-08-11
View user profile

Re: Understanding AND Logic

on Sat Aug 11, 2018 7:30 pm
James Navarro wrote:Sir diba po ang purpose ng modularization is para mas mapadali ang debugging para sa mga programmers?


Tama tama para hindi mahirapan sa pagutilize and kung gusto nyo iupdate yung program nyo

Sent from Topic'it App
avatar
Guru
Posts : 11
Join date : 2018-08-11
View user profile

Re: Understanding AND Logic

on Sat Aug 11, 2018 7:34 pm
airojames wrote:Sir may condition po ba sa paggamit ng OR, AND,NOT Logic
Sa mga decision sir like IF, WHILE, FOR
Medyo magulo tanong ko
Example is yung or kung for while lang sya pwede gamitin hindi pwede sa if and while?



Wala syang condition pre kailangan lang tama yung program mo

Sent from Topic'it App
avatar
Guru
Posts : 11
Join date : 2018-08-11
View user profile

Re: Understanding AND Logic

on Sat Aug 11, 2018 7:40 pm
Admin wrote:
justjoking10 wrote:Sir. Is this right for the coffee vending machine example?
Just like in your example 1 represents TRUE and 0 represents FALSE.

Let X be the 5 peso coin and Y be the pressed button.
if X = 1 AND Y = 1 then
   COFFEE
else
   NO COFFEE
end if

If there is a better way to present it in pseudocode please reply.
don't expect that there is only 1 coin nor flavor, so you can use this:

if coin <> 0 AND flavor <>0
Give Coffee
else
No Coffee

Tama tama Wag ka magdeclare ng coin and type of coffee kasi depende pa rin yan sa user ayon sa tingin ko lang

Sent from Topic'it App
avatar
Guru
Posts : 11
Join date : 2018-08-11
View user profile

Re: Understanding AND Logic

on Sat Aug 11, 2018 7:42 pm
Lawrence wrote:
James Navarro wrote:Kapag AND logic, kailangan mameet yung two (or more??) requirements para magproceed. otherwise, magloop. Kapag OR naman, kahit isa lang mameet na condition? Tama po ba mga ssob?

tama pre . pero sa and logic kasi, only two lang yung kailangan ma meet kasi dalawa lang naman yung choices na patutunguhan sa decision kapag sa and logic.

Tama yun mga pre sa AND gate kailangan dalawang condition mameet sa OR naman kahit isa lang

Sent from Topic'it App
avatar
Guru
Posts : 11
Join date : 2018-08-11
View user profile

Re: Understanding AND Logic

on Sat Aug 11, 2018 7:44 pm
Lawrence wrote:
Luwiezz wrote:Sir is it possible na magamit sa iisang program ang NOT, OR, AND? Or NOT, OR or NOT, AND?
sa pagkaka alam ko pre lahat naman ng boolean expression pwede siya magamit sa iisang program.

Pwede sya parehas lang yata kayo ng tanong ni airo
Depende pa rin talaga sa programmer yan pero pwede

Sent from Topic'it App
avatar
Guru
Posts : 13
Join date : 2018-08-12
View user profile

Re: Understanding AND Logic

on Sun Aug 12, 2018 10:52 am
Sir pwede po ba na sa pinagsamang And and Or pagkatapos po nung And logic maglagay po ng Input para po sa Or logic?

Sent from Topic'it App
avatar
Guru
Posts : 11
Join date : 2018-08-01
View user profile

Re: Understanding AND Logic

on Sun Aug 12, 2018 12:57 pm
airojames wrote:sir pwede po ba gamitin yung tatlong logic sa isang program na magkakasama?(and,not,or)

Pwede pre pero depende sa paggamit mo.

Sent from Topic'it App
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Mon Aug 13, 2018 12:06 am
Pox wrote:
James Navarro wrote:Sir diba po ang purpose ng modularization is para mas mapadali ang debugging para sa mga programmers?


Tama tama para hindi mahirapan sa pagutilize and kung gusto nyo iupdate yung program nyo

Sent from Topic'it App
yes updating is also good in a program and modularization is a big help.
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Mon Aug 13, 2018 12:07 am
Myra Monique Acuna wrote:
airojames wrote:sir pwede po ba gamitin yung tatlong logic sa isang program na magkakasama?(and,not,or)

Pwede pre pero depende sa paggamit mo.

Sent from Topic'it App
"pwidi piro dipindi" Razz jk
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Mon Aug 13, 2018 12:09 am
Asdfghjkl wrote:Sir pwede po ba na sa pinagsamang And and Or pagkatapos po nung And logic maglagay po ng Input para po sa Or logic?

Sent from Topic'it App
yes pwedeng pwede
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Mon Aug 13, 2018 12:09 am
Admin wrote:
Asdfghjkl wrote:Sir pwede po ba na sa pinagsamang And and Or pagkatapos po nung And logic maglagay po ng Input para po sa Or logic?

Sent from Topic'it App
yes pwedeng pwede
pwede pa ngang bumati Very Happy jk
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Mon Aug 13, 2018 12:13 am
Pox wrote:
Admin wrote:
justjoking10 wrote:Sir. Is this right for the coffee vending machine example?
Just like in your example 1 represents TRUE and 0 represents FALSE.

Let X be the 5 peso coin and Y be the pressed button.
if X = 1 AND Y = 1 then
   COFFEE
else
   NO COFFEE
end if

If there is a better way to present it in pseudocode please reply.
don't expect that there is only 1 coin nor flavor, so you can use this:

if coin <> 0 AND flavor <>0
     Give Coffee
else
     No Coffee

Tama tama Wag ka magdeclare ng coin and type of coffee kasi depende pa rin yan sa user ayon sa tingin ko lang

Sent from Topic'it App
yes always think of it when doin a program. Check if the program should declare a value or if its the user who shoud put a value.
avatar
Guru
Posts : 11
Join date : 2018-08-01
View user profile

Re: Understanding AND Logic

on Tue Aug 14, 2018 10:53 am
Admin wrote:
Pox wrote:
Admin wrote:
justjoking10 wrote:Sir. Is this right for the coffee vending machine example?
Just like in your example 1 represents TRUE and 0 represents FALSE.

Let X be the 5 peso coin and Y be the pressed button.
if X = 1 AND Y = 1 then
   COFFEE
else
   NO COFFEE
end if

If there is a better way to present it in pseudocode please reply.
don't expect that there is only 1 coin nor flavor, so you can use this:

if coin <> 0 AND flavor <>0
     Give Coffee
else
     No Coffee

Tama tama Wag ka magdeclare ng coin and type of coffee kasi depende pa rin yan sa user ayon sa tingin ko lang

Sent from Topic'it App
yes always think of it when doin a program. Check if the program should declare a value or if its the user who shoud put a value.
Yes naman, nosebleed dahil sa english lol.
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Tue Aug 14, 2018 10:57 am
ilovebts wrote:
Admin wrote:
Pox wrote:
Admin wrote:
justjoking10 wrote:Sir. Is this right for the coffee vending machine example?
Just like in your example 1 represents TRUE and 0 represents FALSE.

Let X be the 5 peso coin and Y be the pressed button.
if X = 1 AND Y = 1 then
   COFFEE
else
   NO COFFEE
end if

If there is a better way to present it in pseudocode please reply.
don't expect that there is only 1 coin nor flavor, so you can use this:

if coin <> 0 AND flavor <>0
     Give Coffee
else
     No Coffee

Tama tama Wag ka magdeclare ng coin and type of coffee kasi depende pa rin yan sa user ayon sa tingin ko lang

Sent from Topic'it App
yes always think of it when doin a program. Check if the program should declare a value or if its the user who shoud put a value.
Yes naman, nosebleed dahil sa english lol.
while "reply sa forum is english",
do nosebleed();
endwhile
lol!
Guru
Posts : 10
Join date : 2018-08-07
View user profile

Re: Understanding AND Logic

on Tue Aug 14, 2018 12:25 pm
Admin wrote:
ilovebts wrote:
Admin wrote:
Pox wrote:
Admin wrote:
justjoking10 wrote:Sir. Is this right for the coffee vending machine example?
Just like in your example 1 represents TRUE and 0 represents FALSE.

Let X be the 5 peso coin and Y be the pressed button.
if X = 1 AND Y = 1 then
   COFFEE
else
   NO COFFEE
end if

If there is a better way to present it in pseudocode please reply.
don't expect that there is only 1 coin nor flavor, so you can use this:

if coin <> 0 AND flavor <>0
     Give Coffee
else
     No Coffee

Tama tama Wag ka magdeclare ng coin and type of coffee kasi depende pa rin yan sa user ayon sa tingin ko lang

Sent from Topic'it App
yes always think of it when doin a program. Check if the program should declare a value or if its the user who shoud put a value.
Yes naman, nosebleed dahil sa english lol.
while "reply sa forum is english",
   do nosebleed();
endwhile
lol!

ang corny.
Guru
Posts : 10
Join date : 2018-08-02
View user profile

Re: Understanding AND Logic

on Thu Aug 16, 2018 9:50 am
airojames wrote:sir pwede po ba gamitin yung tatlong logic sa isang program na magkakasama?(and,not,or)

Pwede pre kasi sya yung foundation ng looping yung mga logic gates

Sent from Topic'it App
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Understanding AND Logic

on Thu Aug 16, 2018 9:52 am
RicManipon wrote:
airojames wrote:sir pwede po ba gamitin yung tatlong logic sa isang program na magkakasama?(and,not,or)

Pwede pre kasi sya yung foundation ng looping yung mga logic gates

Sent from Topic'it App
Yes more logical operator more effective hehe
Guru
Posts : 10
Join date : 2018-08-02
View user profile

Re: Understanding AND Logic

on Thu Aug 16, 2018 9:54 am
nyela wrote:
Admin wrote:
ilovebts wrote:
Admin wrote:
Pox wrote:
Admin wrote:
justjoking10 wrote:Sir. Is this right for the coffee vending machine example?
Just like in your example 1 represents TRUE and 0 represents FALSE.

Let X be the 5 peso coin and Y be the pressed button.
if X = 1 AND Y = 1 then
   COFFEE
else
   NO COFFEE
end if

If there is a better way to present it in pseudocode please reply.
don't expect that there is only 1 coin nor flavor, so you can use this:

if coin <> 0 AND flavor <>0
     Give Coffee
else
     No Coffee

Tama tama Wag ka magdeclare ng coin and type of coffee kasi depende pa rin yan sa user ayon sa tingin ko lang

yes always think of it when doin a program. Check if the program should declare a value or if its the user who shoud put a value.
Yes naman, nosebleed dahil sa english lol.
while "reply sa forum is english",
   do nosebleed();
endwhile
[smiley]https://illiweb.com/fa/i/smiles/lol.gif[/smiley]

ang corny.

Yes you don't need to declare a variable of coffee and coin because it depends on the user's discerning and the capacitance of the hardware.

Sent from Topic'it App
Guru
Posts : 10
Join date : 2018-08-02
View user profile

Re: Understanding AND Logic

on Thu Aug 16, 2018 9:56 am
Asdfghjkl wrote:Sir pwede po ba na sa pinagsamang And and Or pagkatapos po nung And logic maglagay po ng Input para po sa Or logic?


Pwede nman sya kung yung hinihingi ng condition is mag-input ng variable

Sent from Topic'it App
Sponsored content

Re: Understanding AND Logic

Back to top
Permissions in this forum:
You cannot reply to topics in this forum