Question
WE ARE USING VARIABLES AND TRYPARSE METHOD ON VISUAL BASIC 2015 NO VAL METHOD Place the contents of a textbox named txtFahrenheit into a decimal
WE ARE USING VARIABLES AND TRYPARSE METHOD ON VISUAL BASIC 2015 NO VAL METHOD
Place the contents of a textbox named txtFahrenheit into a decimal variable called decTemperature. Then subtract 32 from this number and place the answer in a decimal variable named decCelsius. Then multiply decCelsius by 5 and divide it by 9; store the answer in decCelsius. Make the label lblTemperature display the result. (decCelsius and decTemperature have already been declared, so you do not need to declare them.)
This is what I have: Decimal.TryParse (txtCelsius.Text.decCesius)
Decimal.TryParse (txtTemperature..Text.decTemperature)
decCelsius = (decTempture - 32) * 5/9
lblTemperature.Text = decCelsius.ToString
Am I missing something or am I wrong?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started