Making Decision
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Understanding AND Logic

+22
kylenicole
Alliah Faith
Emie Ligutan
Lhexmhar
Ferre
Bermon O. Ferreras Jr
rapzie badoodles
RicManipon
nyela
Admin
Myra Monique Acuna
Asdfghjkl
Pox
Lawrence
althea faye
James Navarro
Sean Monacillo
Luwiezz
airojames
JULIAN
justjoking10
ilovebts
26 posters
Go down
avatar
althea faye
Guru
Posts : 10
Join date : 2018-08-07

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
avatar
nyela
Guru
Posts : 10
Join date : 2018-08-07

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
Lawrence
Lawrence
Guru
Posts : 10
Join date : 2018-08-11

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
Lawrence
Lawrence
Guru
Posts : 10
Join date : 2018-08-11

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
Pox
Pox
Guru
Posts : 11
Join date : 2018-08-11

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Pox
Pox
Guru
Posts : 11
Join date : 2018-08-11

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Pox
Pox
Guru
Posts : 11
Join date : 2018-08-11

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Pox
Pox
Guru
Posts : 11
Join date : 2018-08-11

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Pox
Pox
Guru
Posts : 11
Join date : 2018-08-11

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Asdfghjkl
Asdfghjkl
Guru
Posts : 13
Join date : 2018-08-12

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Myra Monique Acuna
Myra Monique Acuna
Guru
Posts : 11
Join date : 2018-08-01

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
ilovebts
ilovebts
Guru
Posts : 11
Join date : 2018-08-01

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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!
avatar
nyela
Guru
Posts : 10
Join date : 2018-08-07

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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.
avatar
RicManipon
Guru
Posts : 10
Join date : 2018-08-02

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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
avatar
RicManipon
Guru
Posts : 10
Join date : 2018-08-02

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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://2img.net/i/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
avatar
RicManipon
Guru
Posts : 10
Join date : 2018-08-02

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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

Understanding AND Logic - Page 3 Empty Re: Understanding AND Logic

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