I can not figure out what it is wrong with this program. It is supposed to ask user to enter a number and then convert the number (from fahrenheit) to celsius. Both input number and result supposed to be entered and displayed on the text box.
I can not figure out what it is wrong with this program. It is supposed to ask user to enter a number and then convert the number (from fahrenheit) to celsius. Both input number and result supposed to be entered and displayed on the text box.
any idea why is not workin?
Please see attachment.
thanks.
What happens when you step through each line with the debugger?
Which line performs an action other than what you would expect?
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!) 2008, 2009,2010 In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Actually it is OK until the number would be displayed on the second text box. It does ask user to enter the fahrenheit in the first tex box but when second box pops up nothing is there.
Actually it is OK until the number would be displayed on the second text box. It does ask user to enter the fahrenheit in the first tex box but when second box pops up nothing is there.
The code you posted is a CONSOLE application, there is no such as a "Text box" in a console application.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!) 2008, 2009,2010 In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Good, except for the last "Console.ReadLine()".A console program is supposed to exit immediately upon competing its task.
If you are developing a console application where you need to see the output, you should run it from a console window, and NOT have something that artifically pauses the execution.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!) 2008, 2009,2010 In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.