Hitman
Number of posts : 131 Age : 31 Localisation : In the Chat Cafe Registration date : 2007-07-25
| Subject: Project in COMPUTER!!!... For those who dont have a copy... Wed Aug 15, 2007 8:40 pm | |
| - Quote :
/* *Temparature Conversion Table *@Student Names ????????? *@Section ??????????? *Date Submitted ?????????????? */
public class Conversion_table { public static void main(String []args){ float ans1, ans2, ans3, ans4, ans5, ans6, ans7, ans8, ans9, ans10; float temp1, temp2, temp3, temp4, temp5; /* * Formulas: * c_to_f = (9/5*temp?)+32; * f_to_c = (temp?-32)*5/9; * c_to_k = temp?+273.15; * f_to_k = (5/9*(temp?-32))+273.15; */
temp1 = 125.0F; temp2 = 46.0F; temp3 = 11.0F; temp4 = 410.0F; temp5 = 147.0F; ans1 = (temp1 - 32) * 5/9; ans2 = ans1 + 273.15F; ans3 = ??????????? ans4 = temp2 + 273.15F; ans5 = (9/5 * temp3) + 32; ans6 = ??????????????? ans7 = ????????????? ans8 = ??????????? ans9 = ???????????? ans10 = ans9 + 273.15F; System.out.println("|---------------------------------------------------------------|"); System.out.println("| Celsius | Fahrenheit | Kelvin |"); System.out.println("|---------------------------------------------------------------|"); System.out.println(" "+ans1+"\t\t"+temp1+"\t\t"+ans2);
????????????????????????????????????????????????????????????????? System.out.println(" "+ans9+"\t\t"+temp5+"\t\t"+ans10); System.out.println("|---------------------------------------------------------------|"); } }
NOTE: ????????>> areas to be filled with data... The outcome should be like this:
Last edited by on Mon Aug 20, 2007 6:56 pm; edited 1 time in total | |
|
lowell_sparks24
Number of posts : 15 Age : 31 Registration date : 2007-07-13
| Subject: B***s***!! Sat Aug 18, 2007 7:22 pm | |
| Asar!!!! Mali nman ung output sa no2 nd no3 sa Fahrenheit!!! Kapagi-convert ung Celsius to Fahrenheit mali ung answer!!! | |
|
Hitman
Number of posts : 131 Age : 31 Localisation : In the Chat Cafe Registration date : 2007-07-25
| Subject: Re: Project in COMPUTER!!!... For those who dont have a copy... Sun Aug 19, 2007 4:17 pm | |
| gamitin nyo ung formula na nsa taas....
tama daw un sabi ni sir jouf eh...
hehehe... pero pag kinalculator mo...mali =x
substitute mo lng ung mga value | |
|
Sponsored content
| Subject: Re: Project in COMPUTER!!!... For those who dont have a copy... | |
| |
|