Sign in to follow this  
Followers 0
ifthenhelpme

School Project help

47 posts in this topic

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!

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

ok...now it wont work because it says Error in expression and points to "If"

Share this post


Link to post
Share on other sites

You're missing an & after $p.

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

@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"

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

#13 ·  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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#15 ·  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

Share this post


Link to post
Share on other sites

#16 ·  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

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

finally...someone figures out my true assignment...i just kinda figured that people would help more if they thought it was a project...sorry though

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

ok...so ... can u help me out at all...remember i will send u a minimum of 2 gmail invites if u can help me and u want gmail...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0