Jump to content

Recommended Posts

Posted

Ok ... so I have this project for school ... Geometry class ... we have to make a script to turn a few words into a conditional statement ... the converse of it ... the inverse of the condition ... and to make it decide if its true or false and make it create a counterexample or a biconditional statement...here's what i have so far...and it already doesn't work...

$p=InputBox("Hypothesis", "Type in the hypothesis in the space provided.", "")
$q=InputBox("Conclusion", "Type in the conclusion in the space provided.", "")
MsgBox(48, "Conditional Statement", "If $p , then $q EndIf.")
SOMEONE PLEASE HELP ME!

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Ok ... so I have this project for school ... Geometry class ... we have to make a script to turn a few words into a conditional statement ... the converse of it ... the inverse of the condition ... and to make it decide if its true or false and make it create a counterexample or a biconditional statement...here's what i have so far...and it already doesn't work...

$p=InputBox("Hypothesis", "Type in the hypothesis in the space provided.", "")
$q=InputBox("Conclusion", "Type in the conclusion in the space provided.", "")
MsgBox(48, "Conditional Statement", "If $p , then $q EndIf.")
SOMEONE PLEASE HELP ME!

<{POST_SNAPBACK}>

faq 9

"I'm not even supposed to be here today!" -Dante (Hicks)

Posted (edited)

that helps me a little...i only get the hypothesis to show up now...

$p=InputBox("Hypothesis", "Type in the hypothesis in the space provided.", "")
$q=InputBox("Conclusion", "Type in the conclusion in the space provided.", "")
MsgBox(48, "Conditional Statement", "If " & $p  "then" & $q )

Edit: the message box needs to come up with a statement following this ... "If xxx, then yyy." can it do that?

Edited by ifthenhelpme
Posted (edited)

now the damn thing has no spaces...

EDIT: Ok ... so I have this project for school ... Geometry class ... we have to make a script to turn a few words into a conditional statement (GOT IT EXCEPT THE SPACING) ... the converse of it(WHICH MEANS SWITCHING $P AND $Q) ... the inverse of the condition(INSTEAD OF "If it is sunny, then the sky is clear" it would change it to "If it isn't sunny, then the sky isn't clear.") ... and to make it decide if its true or false and make it create a biconditional statement...

Edited by ifthenhelpme
Posted

wow...this is totally confusing and the stupid teacher made it worth 100 points

<{POST_SNAPBACK}>

I'm really curious, did the teacher specify the language?

"I'm not even supposed to be here today!" -Dante (Hicks)

Posted

now the damn thing has no spaces...

EDIT: Ok ... so I have this project for school ... Geometry class ... we have to make a script to turn a few words into a conditional statement (GOT IT EXCEPT THE SPACING) ... the converse of it(WHICH MEANS SWITCHING $P AND $Q) ... the inverse of the condition(INSTEAD OF "If it is sunny, then the sky is clear" it would change it to "If it isn't sunny, then the sky isn't clear.") ... and to make it decide if its true or false and make it create a biconditional statement...

<{POST_SNAPBACK}>

how many points do I get if I tell you the answer? :ph34r:

you have the answer .... you've already got one in your script...

"I'm not even supposed to be here today!" -Dante (Hicks)

Guest BL@(K-R34P3R
Posted

I don't understand the if then, can someone please tell me how and what that does?

$p=InputBox("Hypothesis", "Type in the hypothesis in the space provided.", "")
$q=InputBox("Conclusion", "Type in the conclusion in the space provided.", "")
MsgBox(48, "Conditional Statement", "If $p , then $q EndIf.")

"If $p, then $q..." what is that doing?

Posted

@Bl@(K-R34P3R - it is not a regular autoit funtion...it is for goemetry

@emmanuel - no she didnt specifify the language...i have been playing with AutoIt for a little while now and it seems easy...and u get a bagillion points for helping me...please explain "you already have one in your script"

Guest BL@(K-R34P3R
Posted

I know that it's for geometry, I took that class 2 years ago, but I juts don't understand how that script you made works. What does it DO?

Posted (edited)

im trying to make it turn a few words into a conditional statement(If->then)...its converse(then->If)...its inverse(~If->~then)...and its contrapositive(~then->~If)

EDIT: and if its possible make it determine if its true or false so it can make a counter-example or biconditional statement

Edited by ifthenhelpme
Guest BL@(K-R34P3R
Posted

AHHHH, my bad. I looked at your script again. For some reason, before I thought that you were actually using an IF THEN statement, but you are just using those words and printing the variable statements after. Thanks.

Posted (edited)

yea...can u help me?

EDIT: If someone can help me through this I will send then atleast 2 free GMail invites...if that matters to anyone...

Edited by ifthenhelpme
Posted (edited)

You are just wanting it to pop up a message box that says say I put 1 for $p and 2 for $q then have it pop up If 1 then 2 endif? If so that will work.

$p=InputBox("Hypothesis", "Type in the hypothesis in the space provided.", "")

$q=InputBox("Conclusion", "Type in the conclusion in the space provided.", "")

MsgBox(48, "Conditional Statement", "If " & $p &" then " & $q & " EndIf.")

Erm and why the hell are they having you script in geometry? That seems um... slightly off topic? If it's a college class you could probly talk to the head of the math department or whatever.

Edited by KnowledgeSponge
Guest BL@(K-R34P3R
Posted

His teacher isn't MAKING him do it. He is doing it to make his homework easier. All he does is put in the statement, and it prints out the converse, inverse, etc...

Guest BL@(K-R34P3R
Posted

Heh. Well, it's not like it really matters, plenty of people here use it for stuff like that.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...