Another C# help question

Thank I got it, and I've finished being able to edit the files :D Your help has been great. I have just one last question, is my formulas right?

PHP:
         powerUsed = double.Parse(txtPower.Text);
                timeLeftOn = double.Parse(txtTime.Text);
                cost = double.Parse(txtCost.Text);
                co2 = double.Parse(txtCo2.Text);

                costperitem = (powerUsed * timeLeftOn / 1000 * cost);

                carbonfootprintperitem = (powerUse * co2);

as using these values I get some weird answers
PHP:
	Hardware	PowerConsumption	TimeOn	CostPerHour	Co2
23	Computer	172.40	9	0.15	0.36
24	Printer	506.00	24	0.15	0.36
25	Router	20.00	24	0.15	0.36
22	Server	472.00	24	0.15	0.36

Can you post all your code?
 
Thank I got it, and I've finished being able to edit the files :D Your help has been great. I have just one last question, is my formulas right?

PHP:
         powerUsed = double.Parse(txtPower.Text);
                timeLeftOn = double.Parse(txtTime.Text);
                cost = double.Parse(txtCost.Text);
                co2 = double.Parse(txtCo2.Text);

                costperitem = (powerUsed * timeLeftOn / 1000 * cost);

                carbonfootprintperitem = (powerUse * co2);

as using these values I get some weird answers
PHP:
	Hardware	PowerConsumption	TimeOn	CostPerHour	Co2
23	Computer	172.40	9	0.15	0.36
24	Printer	506.00	24	0.15	0.36
25	Router	20.00	24	0.15	0.36
22	Server	472.00	24	0.15	0.36

Is the power consumption in standard units? I.e. is the power consumption the amount of power used in one hour? Or is it the power consumed for the duration the item was on?

E.g. is that 172.40 (Watts?) for an hour or for 9 hours?
 
Back
Top Bottom