Jump to content

FE4 THREAD


Fia
 Share

Recommended Posts

  • Replies 674.9k
  • Created
  • Last Reply

Top Posters In This Topic

  • TheEnd

    72124

  • Rei Rei

    41380

  • Ϲharlie

    31020

  • Icon of Sin

    29767

Top Posters In This Topic

No, YOU'RE to blame!

Getting feisty are we?

[spoiler=8D]Public Class CanadianConversion

Private Sub btnConvertToCanadian_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvertToCanadian.Click

If txtmiles.Text <> Nothing Then

txtkilometers.Text = MilesToKilometers(Val(txtmiles.Text))

End If

If txtgallons.Text <> Nothing Then

txtliters.Text = GallonstoLiters(Val(txtgallons.Text))

End If

If txtdollars.Text <> Nothing Then

txtLoonies.Text = DollarstoLoonies(Val(txtdollars.Text))

End If

End Sub

Private Sub btnConvertToUS_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvertToUS.Click

If txtkilometers.Text <> Nothing Then

txtmiles.Text = KilometerstoMiles(Val(txtkilometers.Text))

End If

If txtliters.Text <> Nothing Then

txtgallons.Text = LiterstoGallons(Val(txtliters.Text))

End If

If txtLoonies.Text <> Nothing Then

txtdollars.Text = LooniesToDollars(Val(txtLoonies.Text))

End If

End Sub

Function MilesToKilometers(ByVal Miles As Double) As Double

Dim Kilos As Double

Kilos = Miles * 1.609

Return Kilos

End Function

Function KilometerstoMiles(ByVal Kilos As Double) As Double

Dim Miles As Double

Miles = Kilos / 1.609

Return Miles

End Function

Function GallonstoLiters(ByVal Gallons As Double) As Double

Dim Liters As Double

Liters = Gallons * 3.79

Return Liters

End Function

Function LiterstoGallons(ByVal Liters As Double) As Double

Dim Gallons As Double

Gallons = Liters / 3.79

Return Gallons

End Function

Function LooniesToDollars(ByVal Loonies As Double) As Double

Dim Dollars As Double

Dollars = Loonies / 0.95

Return Dollars

End Function

Function DollarstoLoonies(ByVal Dollars As Double) As Double

Dim Loonies As Double

Loonies = Dollars * 0.95

Return Loonies

End Function

End Class

I love how big this stuff gets, especially when it works...

Edited by Lux Aeterna
Link to comment
Share on other sites

Getting feisty are we?

Yup, might as well!

What is that code for? :0

WHAT. It's more your fault than mine. :<

WHAT. I think you're the ultimate culprit. :<

Edited by NTG
Link to comment
Share on other sites

Yup, might as well!

What is that code for? :0

"Might as well be feisty?" ..?

See, for April vacation this year each class is giving out two assignments to make up for snow days. I did VB first because, well, I'm a dork, and love programming. That was my second assignment--create a coding in VB--it converts some US measurements (miles, gallons, dollars) to Canadian measurements (kilometers, liters, and Canadian Dollars). It worked perfectly!

Link to comment
Share on other sites

WHAT. I'm a victim here. :<

YOU ARE A MASTERMIND. You are a culprit and a victim at the same time!

"Might as well be feisty?" ..?

See, for April vacation this year each class is giving out two assignments to make up for snow days. I did VB first because, well, I'm a dork, and love programming. That was my second assignment--create a coding in VB--it converts some US measurements (miles, gallons, dollars) to Canadian measurements (kilometers, liters, and Canadian Dollars). It worked perfectly!

Might as well be feisty while there isn't too many witnesses around!

Ahh, cool! My computing class has finished now, but maybe I should mess around with some code too once in a while...

Link to comment
Share on other sites

"Handles btnConvertToCanadian.Click"

Misread as Convert to Canadian Chick.

... HAAHHAHAHAHAHAHA

Might as well be feisty while there isn't too many witnesses around!

Ahh, cool! My computing class has finished now, but maybe I should mess around with some code too once in a while...

And then twenty people read the thread and saw your feisty attitude.

What's your planned major, in that case?

Link to comment
Share on other sites

"Handles btnConvertToCanadian.Click"

Misread as Convert to Canadian Chick.

ohmy

YOU ARE A MASTERMIND. You are a culprit and a victim at the same time!

HOW. BUT I've nothing to gain by doing this, so that can't be true.

How's Radiant Historia?

Link to comment
Share on other sites

And then twenty people read the thread and saw your feisty attitude.

What's your planned major, in that case?

Oh no! How terrible!......

Just plain ol' Mathematics. :0 Thinking about adding something to that, maybe. Physics or Computer Science, maybe... or maybe not.

HOW. BUT I've nothing to gain by doing this, so that can't be true.

How's Radiant Historia?

COME ON, THAT WAS A COMPLIMENT. Okay, I was only kidding. You can blame it all on me if you want. :<

Radiant Historia is going...... AMAAAAAAAAAAAAAAAAAAAZING.

Link to comment
Share on other sites

COME ON, THAT WAS A COMPLIMENT. Okay, I was only kidding. You can blame it all on me if you want. :<

Radiant Historia is going...... AMAAAAAAAAAAAAAAAAAAAZING.

WAS IT REALLY? That wouldn't be nice and gentlemanly. SO I'LL ONLY BLAME YOU PARTIALLY.

Yeeees. :> How far are you? Only got Marco and Raynie so far?

Link to comment
Share on other sites

Oh no! How terrible!......

Just plain ol' Mathematics. :0 Thinking about adding something to that, maybe. Physics or Computer Science, maybe... or maybe not.

I feel like you're less regretful than your trailing regret comment lets on.

..? How does one simply get a job in math? And you should take computer science, if you like it. DO IT

Link to comment
Share on other sites

WAS IT REALLY? That wouldn't be nice and gentlemanly. SO I'LL ONLY BLAME YOU PARTIALLY.

Yeeees. :> How far are you? Only got Marco and Raynie so far?

YES! Why, thank you! You can put the rest of the blame on TheEnd. :>

Hmmmm! On SH I'm about to sneak into the castle, now that I've learnt the skill on how to be sneaky. On AH I've just arrived in Celestia after we suffered many wounds... :_:

I feel like you're less regretful than your trailing regret comment lets on.

..? How does one simply get a job in math? And you should take computer science, if you like it. DO IT

Indeed, your feeling is correct.

Well, Mathematics is quite broad and I assume would be useful for many different jobs. At least, that's the sort of things they tell me over here. :0 Ho ho, maybe I will! I could change my choice to Mathematics with Computer Science, probably.

Hi NTG. :newyears:

Hello! :)

Though now it's time to say, Seeya!

Edited by NTG
Link to comment
Share on other sites

YES! Why, thank you! You can put the rest of the blame on TheEnd. :>

Hmmmm! On SH I'm about to sneak into the castle, now that I've learnt the skill on how to be sneaky. On AH I've just arrived in Celestia after we suffered many wounds... :_:

OKAY! You're welcome! Gladly. :>

Ah! the assassination. I remember hating those sewers (random enemies falling from the ceiling waaah). I see. Who are you using in your party currently?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

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