Part of programming is knowing your own ability, and throwing out 40 lines of code that doesn't compile does nobody any good, and throwing up the offending code and saying please help me get it to run, is an absolute abuse of the system. Each time you get it to compile check the functionality of what you have up to that point, then move on. You need to enter a few lines and get it to compile, then add a little more, get it to compile, and more along in that fashion. I keep getting error messages and I just really need help to get it to compile properly then i can at least start getting the bugs out. the main class is created to test the Converter classīufferedReader stdin = new BufferedReader (inStream) (celsius + " degrees celsius is: " + fahrenheit + "degrees fahrenheit.") ("Please input temperature in Celsius:") įahrenheit = ((9.0 / 5.0) * celcius + 32) InputStreamReader inStream = new InputStreamReader (System.in) method to convert celcius to fahrenheit (farenheit + " degrees fahreheit is: " + celsius + "degrees celsius.") ("Please input temperature in Fahrenheit:") Ĭelsius = ((5.0 / 9.0) * (fahrenheit - 32)) method to convert fahrenheit to celciusīufferedReader temp = new BufferedReader (inStream) Your method should have a return type and one parameter.Ĭelsius = (5.0 / 9.0) * (fahrenheit - 32) Your method should have a return type and one parameter.Ģ.ğahrenheit to Celsius method. Your methods must meet the following criteria:ġ.Ĝelsius to Fahrenheit method. One temperature scale and the program will output the converted temperature. To Fahrenheit temperature and one method for converting Fahrenheit Program will have two methods-one for converting Celsius temperature I've been trying but cannot figure it out so I'm seeking help.ĭesign an object oriented Celsius-Fahrenheit converter program. Basically this is it, Tuesday I have this program due.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |