我需要无知的帮助

我需要无知的帮助

本文介绍了我需要无知的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个Windows应用程序,该程序将温度从华氏温度转换为摄氏度和开氏温度.程序应接受华氏温度,然后提供一个将温度转换为摄氏度和开氏度的按钮,并将结果放置在指定格式的指定标签中,以便精确显示小数点后两位.这是用于作业,但我的老师错过了2在线课程,明天上课,我需要一点帮助,但是我不知道从哪里开始,请帮助

Write a Windows application that converts a temperature from Fahrenheit to Centigrade and Kelvin. The program should accept a Fahrenheit temperature and then provide a single Button that will convert this temperature to both Centigrade and Kelvin and place the results in designated Labels formatted so that it shows exactly two decimal places.This is for homework but my teacher has missed 2 online classes and this is due tomorrow,all i need is a little help but i dont know where to begin,please help

decimal F = decimal.Parse(TempUnits.Text);
decimal C = decimal.Parse(Celsius.Text);
decimal K = decimal.Parse(Kelvin.Text);
K = C + 273;
C = (F - 32) * 5 / 9;
F = K - 153;





How do i put it in the label text should i convert it to string?

推荐答案



这篇关于我需要无知的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 22:05