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
- althea fayeGuru
- Posts : 10
Join date : 2018-08-07
Re: Understanding AND Logic
Tue Aug 07, 2018 9:33 am
idol ko talaga si sirAdmin wrote:para higit na maunawaan ng mambabasaairojames wrote:yes! may paexample si sir!
Re: Understanding AND Logic
Tue Aug 07, 2018 9:40 am
althea faye wrote:idol ko talaga si sirAdmin wrote:para higit na maunawaan ng mambabasaairojames wrote:yes! may paexample si sir!
- nyelaGuru
- Posts : 10
Join date : 2018-08-07
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.
Re: Understanding AND Logic
Wed Aug 08, 2018 7:34 am
Good point ma'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.
- LawrenceGuru
- Posts : 10
Join date : 2018-08-11
Re: Understanding AND Logic
Sat Aug 11, 2018 6:59 pm
sa pagkaka alam ko pre lahat naman ng boolean expression pwede siya magamit sa iisang program.Luwiezz wrote:Sir is it possible na magamit sa iisang program ang NOT, OR, AND? Or NOT, OR or NOT, AND?
- LawrenceGuru
- Posts : 10
Join date : 2018-08-11
Re: Understanding AND Logic
Sat Aug 11, 2018 7:01 pm
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.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
- PoxGuru
- Posts : 11
Join date : 2018-08-11
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
- PoxGuru
- Posts : 11
Join date : 2018-08-11
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
- PoxGuru
- Posts : 11
Join date : 2018-08-11
Re: Understanding AND Logic
Sat Aug 11, 2018 7:40 pm
Admin wrote:don't expect that there is only 1 coin nor flavor, so you can use this: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.
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
- PoxGuru
- Posts : 11
Join date : 2018-08-11
Re: Understanding AND Logic
Sat Aug 11, 2018 7:42 pm
Lawrence wrote: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.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 yun mga pre sa AND gate kailangan dalawang condition mameet sa OR naman kahit isa lang
Sent from Topic'it App
- PoxGuru
- Posts : 11
Join date : 2018-08-11
Re: Understanding AND Logic
Sat Aug 11, 2018 7:44 pm
Lawrence wrote:sa pagkaka alam ko pre lahat naman ng boolean expression pwede siya magamit sa iisang program.Luwiezz wrote:Sir is it possible na magamit sa iisang program ang NOT, OR, AND? Or NOT, OR or NOT, AND?
Pwede sya parehas lang yata kayo ng tanong ni airo
Depende pa rin talaga sa programmer yan pero pwede
Sent from Topic'it App
- AsdfghjklGuru
- Posts : 13
Join date : 2018-08-12
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
Sent from Topic'it App
- Myra Monique AcunaGuru
- Posts : 11
Join date : 2018-08-01
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
Re: Understanding AND Logic
Mon Aug 13, 2018 12:06 am
yes updating is also good in a program and modularization is a big help.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
Re: Understanding AND Logic
Mon Aug 13, 2018 12:07 am
"pwidi piro dipindi" jkMyra 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
Re: Understanding AND Logic
Mon Aug 13, 2018 12:09 am
yes pwedeng pwedeAsdfghjkl 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
Re: Understanding AND Logic
Mon Aug 13, 2018 12:09 am
pwede pa ngang bumati jkAdmin wrote:yes pwedeng pwedeAsdfghjkl 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
Re: Understanding AND Logic
Mon Aug 13, 2018 12:13 am
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.Pox wrote:Admin wrote:don't expect that there is only 1 coin nor flavor, so you can use this: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.
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
- ilovebtsGuru
- Posts : 11
Join date : 2018-08-01
Re: Understanding AND Logic
Tue Aug 14, 2018 10:53 am
Yes naman, nosebleed dahil sa english lol.Admin wrote: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.Pox wrote:Admin wrote:don't expect that there is only 1 coin nor flavor, so you can use this: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.
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
Re: Understanding AND Logic
Tue Aug 14, 2018 10:57 am
while "reply sa forum is english",ilovebts wrote:Yes naman, nosebleed dahil sa english lol.Admin wrote: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.Pox wrote:Admin wrote:don't expect that there is only 1 coin nor flavor, so you can use this: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.
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
do nosebleed();
endwhile
- nyelaGuru
- Posts : 10
Join date : 2018-08-07
Re: Understanding AND Logic
Tue Aug 14, 2018 12:25 pm
Admin wrote:while "reply sa forum is english",ilovebts wrote:Yes naman, nosebleed dahil sa english lol.Admin wrote: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.Pox wrote:Admin wrote:don't expect that there is only 1 coin nor flavor, so you can use this: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.
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
do nosebleed();
endwhile
ang corny.
- RicManiponGuru
- Posts : 10
Join date : 2018-08-02
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
Re: Understanding AND Logic
Thu Aug 16, 2018 9:52 am
Yes more logical operator more effective heheRicManipon 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
- RicManiponGuru
- Posts : 10
Join date : 2018-08-02
Re: Understanding AND Logic
Thu Aug 16, 2018 9:54 am
nyela wrote:Admin wrote:while "reply sa forum is english",ilovebts wrote:Yes naman, nosebleed dahil sa english lol.Admin wrote: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.Pox wrote:Admin wrote:don't expect that there is only 1 coin nor flavor, so you can use this: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.
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
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
- RicManiponGuru
- Posts : 10
Join date : 2018-08-02
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
Permissions in this forum:
You cannot reply to topics in this forum
|
|