Go Back   Flash Flash Revolution > General Discussion > Critical Thinking > Homework & Help
Register FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Display Modes
Old 09-18-2012, 12:06 PM   #1
Hakulyte
the Haku
Retired StaffD7 Elite KeysmasherFFR Veteran
 
Hakulyte's Avatar
 
Join Date: Jul 2005
Age: 35
Posts: 4,524
Default [College - Computer Science] Programming in VB(Drag and Drop)

Edit: Solved..

Last edited by Hakulyte; 09-18-2012 at 10:40 PM..
Hakulyte is offline  
Old 09-18-2012, 04:00 PM   #2
Patashu
FFR Simfile Author
Retired StaffFFR Simfile Author
 
Patashu's Avatar
 
Join Date: Apr 2006
Location: we traced the call...it's coming from inside the house
Age: 33
Posts: 8,609
Send a message via AIM to Patashu Send a message via MSN to Patashu Send a message via Yahoo to Patashu
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

your university things Java -> WPF is a good progression? lol

especially if it's not say Java -> Swing in Java -> WPF
__________________
Patashu makes Chiptunes in Famitracker:
http://soundcloud.com/patashu/8bit-progressive-metal-fading-world
http://img.photobucket.com/albums/v216/Mechadragon/smallpackbanner.png
Best non-AAAs: ERx8 v2 (14-1-0-4), Hajnal (3-0-0-0), RunnyMorning (8-0-0-4), Xeno-Flow (1-0-0-3), Blue Rose (35-2-0-20), Ketsarku (14-0-0-0), Silence (1-0-0-0), Lolo (14-1-0-1)
http://i231.photobucket.com/albums/ee301/xiaoven/solorulzsig.png
Patashu is offline  
Old 09-18-2012, 04:55 PM   #3
Hakulyte
the Haku
Retired StaffD7 Elite KeysmasherFFR Veteran
 
Hakulyte's Avatar
 
Join Date: Jul 2005
Age: 35
Posts: 4,524
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

The progression is fine, the way they did it is the confusing part or/and I'm bad at programming.

It's not like it was really changing anything.

Last edited by Hakulyte; 09-18-2012 at 05:05 PM..
Hakulyte is offline  
Old 10-2-2012, 04:54 PM   #4
customstuff
♥C.S. + A.M.♥
FFR Veteran
 
customstuff's Avatar
 
Join Date: Nov 2006
Location: Nova Scotia, Canada
Age: 30
Posts: 4,892
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

Well, I might as well post this in this thread since it's concerning VB. I have a project due Friday and I'm supposed to create a coin calculator where someone enters in an amount of change in a textbox and on a button click it determines how many quarters, dimes, nickels, and pennies it takes to make the change.

My issue is that no errors show up in the error list, but when I test it, it just crashes and doesn't give me a clear solution at all.

Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
Dim Change As Double
Dim Quarter, Dime, Nickel, Penny As Integer
Change = CDbl(txtChange.Text)
Quarter = CInt(txtQuarter.Text)
Dime = CInt(txtDime.Text)
Nickel = CInt(txtNickel.Text)
Penny = CInt(txtPenny.Text)
Quarter = CInt(Change / 0.25)
Dime = CInt(Change Mod 0.25 / 10)
Nickel = CInt(Change Mod 0.1 / 5)
Penny = CInt(Change Mod 0.05 / 1)

End Sub
End Class


I'm VERY new at this, so be kind haha. You don't have to give me a solution, just a hint is nice. The bold line is where it finds an issue.

EDIT: This is the error I get: Conversion from string "" to type 'Double' is not valid. (or similar things)
__________________

Quote:
Originally Posted by MrMagic5239 View Post
Placements are final, custom will not be moved to D6, just because he is good at jacks, and mediocre at just about every other FMO in the game.
Quote:
Originally Posted by customstuff View Post
Quote:
Originally Posted by MrMagic5239 View Post
welcome to D6

start playing

Last edited by customstuff; 10-2-2012 at 05:00 PM..
customstuff is offline  
Old 10-2-2012, 05:23 PM   #5
FissionMailed1
FFR Player
 
FissionMailed1's Avatar
 
Join Date: Feb 2012
Location: Massachusetts
Age: 33
Posts: 1,267
Send a message via Skype™ to FissionMailed1
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

Here is a hint in the form of a question: How can you represent an empty string as an integer?
__________________


YOUR THROBBING MULTIFARIOUS LUSTFUL DESIRES ARE COMPLETED N YOUR HYPER-ORANGE SELF, YOU MAKE ME LOVE AGAIN, YOU'VE CHANGED MY HEART, MY MELANCHOLIA DISAPPEARS WHEN YOU ARE INSIDE OF ME, MY HUMAN RAGE IS TEMPERED WHEN I AM INSIDE YOU, THE SECRET IS COMMUNICATION, LONGEVITY, STAMINA, REPETITION, FURY, SOULFUL KISSING, EARPLUGS. YOU FUCKING CORPORATE COCKS AND CUNTS.

MY ANXIETY COMPLETE, MY DESIRE REPLETE, THE TASTE OF ORANGE BLOOD AND CUM AND GREENBACKS RUNNING DOWN MY FACE. THE STREETS WILL RUN ORANGE WITH YOUR MIXTURE OF CHEETOS AND HUNDRED DOLLAR BILLS REGURGITATED AND EATEN AND SHIT OUT AGAIN AND EATEN AGAIN.

YOU ARE MY SCULPTURE, MY SCULPTRA, MY SELF-DEFINITION. MY DEFINITION OF HUMANITY, MY HARMONY. MY HEART AND MY MIND.

YOU ARE SO ORANGE. SO CRUNCHY. SO CONSUMABLE.

THE NEW ORANGE UNDERGROUND IS THE ORANGE UP MY ASS. AND YOUR ASS.

I LOVE YOU CHEETOS.
FissionMailed1 is offline  
Old 10-2-2012, 06:22 PM   #6
customstuff
♥C.S. + A.M.♥
FFR Veteran
 
customstuff's Avatar
 
Join Date: Nov 2006
Location: Nova Scotia, Canada
Age: 30
Posts: 4,892
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

I went ahead before I saw your hint and got this, however there's still some issues.

Dim Change As Long
Dim Quarter, Dime, Nickel, Penny As Integer
Change = CLng(txtChange.Text) * 100
Quarter = CInt(Change / 25)
txtQuarter.Text = CStr(Quarter)
Dime = CInt(Change Mod 25 / 10)
txtDime.Text = CStr(Dime)
Nickel = CInt(Change Mod 1 / 5)
txtNickel.Text = CStr(Nickel)
Penny = CInt(Change Mod 5 / 1)
txtPenny.Text = CStr(Penny)

I've been trying to change from Long to Double and everything, so this has been changing a lot but whatever I do, it doesn't show accurate numbers. It said I needed 4 quarters for $0.94 and 0 for $0.50.
__________________

Quote:
Originally Posted by MrMagic5239 View Post
Placements are final, custom will not be moved to D6, just because he is good at jacks, and mediocre at just about every other FMO in the game.
Quote:
Originally Posted by customstuff View Post
Quote:
Originally Posted by MrMagic5239 View Post
welcome to D6

start playing

Last edited by customstuff; 10-2-2012 at 06:40 PM..
customstuff is offline  
Old 10-2-2012, 06:48 PM   #7
FissionMailed1
FFR Player
 
FissionMailed1's Avatar
 
Join Date: Feb 2012
Location: Massachusetts
Age: 33
Posts: 1,267
Send a message via Skype™ to FissionMailed1
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

Your math is incorrect.

Let's assume for a moment that you have $0.99 in change and you want to find out what the correct amount of each coin type is.

In this case you should be dealing in integers, since they don't have rounding errors. $0.99 multiplied by 100 is 99, so now you can start manipulating that figure.

When you divide 99 by 25 in integer arithmetic, the quotient is 3 because everything after the decimal is truncated, so you know you need 3 quarters.

You should be able to correct the rest of your program from here.
__________________


YOUR THROBBING MULTIFARIOUS LUSTFUL DESIRES ARE COMPLETED N YOUR HYPER-ORANGE SELF, YOU MAKE ME LOVE AGAIN, YOU'VE CHANGED MY HEART, MY MELANCHOLIA DISAPPEARS WHEN YOU ARE INSIDE OF ME, MY HUMAN RAGE IS TEMPERED WHEN I AM INSIDE YOU, THE SECRET IS COMMUNICATION, LONGEVITY, STAMINA, REPETITION, FURY, SOULFUL KISSING, EARPLUGS. YOU FUCKING CORPORATE COCKS AND CUNTS.

MY ANXIETY COMPLETE, MY DESIRE REPLETE, THE TASTE OF ORANGE BLOOD AND CUM AND GREENBACKS RUNNING DOWN MY FACE. THE STREETS WILL RUN ORANGE WITH YOUR MIXTURE OF CHEETOS AND HUNDRED DOLLAR BILLS REGURGITATED AND EATEN AND SHIT OUT AGAIN AND EATEN AGAIN.

YOU ARE MY SCULPTURE, MY SCULPTRA, MY SELF-DEFINITION. MY DEFINITION OF HUMANITY, MY HARMONY. MY HEART AND MY MIND.

YOU ARE SO ORANGE. SO CRUNCHY. SO CONSUMABLE.

THE NEW ORANGE UNDERGROUND IS THE ORANGE UP MY ASS. AND YOUR ASS.

I LOVE YOU CHEETOS.
FissionMailed1 is offline  
Old 10-2-2012, 06:58 PM   #8
customstuff
♥C.S. + A.M.♥
FFR Veteran
 
customstuff's Avatar
 
Join Date: Nov 2006
Location: Nova Scotia, Canada
Age: 30
Posts: 4,892
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

Thank you again for your assistance but again, I noticed my errors and now have the quarters displaying correctly. Now I just need to work my way down and hopefully I'll get it. Thanks!
__________________

Quote:
Originally Posted by MrMagic5239 View Post
Placements are final, custom will not be moved to D6, just because he is good at jacks, and mediocre at just about every other FMO in the game.
Quote:
Originally Posted by customstuff View Post
Quote:
Originally Posted by MrMagic5239 View Post
welcome to D6

start playing
customstuff is offline  
Old 10-2-2012, 07:09 PM   #9
FissionMailed1
FFR Player
 
FissionMailed1's Avatar
 
Join Date: Feb 2012
Location: Massachusetts
Age: 33
Posts: 1,267
Send a message via Skype™ to FissionMailed1
Default Re: [College - Computer Science] Programming in VB(Drag and Drop)

Well you keep editing your posts as I am typing them, so I have no idea what you are figuring out or still having trouble with.
__________________


YOUR THROBBING MULTIFARIOUS LUSTFUL DESIRES ARE COMPLETED N YOUR HYPER-ORANGE SELF, YOU MAKE ME LOVE AGAIN, YOU'VE CHANGED MY HEART, MY MELANCHOLIA DISAPPEARS WHEN YOU ARE INSIDE OF ME, MY HUMAN RAGE IS TEMPERED WHEN I AM INSIDE YOU, THE SECRET IS COMMUNICATION, LONGEVITY, STAMINA, REPETITION, FURY, SOULFUL KISSING, EARPLUGS. YOU FUCKING CORPORATE COCKS AND CUNTS.

MY ANXIETY COMPLETE, MY DESIRE REPLETE, THE TASTE OF ORANGE BLOOD AND CUM AND GREENBACKS RUNNING DOWN MY FACE. THE STREETS WILL RUN ORANGE WITH YOUR MIXTURE OF CHEETOS AND HUNDRED DOLLAR BILLS REGURGITATED AND EATEN AND SHIT OUT AGAIN AND EATEN AGAIN.

YOU ARE MY SCULPTURE, MY SCULPTRA, MY SELF-DEFINITION. MY DEFINITION OF HUMANITY, MY HARMONY. MY HEART AND MY MIND.

YOU ARE SO ORANGE. SO CRUNCHY. SO CONSUMABLE.

THE NEW ORANGE UNDERGROUND IS THE ORANGE UP MY ASS. AND YOUR ASS.

I LOVE YOU CHEETOS.
FissionMailed1 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution