Take this as a lesson for your future assigments, once you get instructions - read them twice right away after instructions are published write abstract pseudo code to see how you understand that exercise, if something is unclear, consult with your tutor decide how much time you need to leave for yourself (define a date when you start) so you could accomplish task and get a decent mark (at least 80%). And you probably already noticed, that start writing code without designing it on a paper and getting all logic done first, it becomes even more complicated. ![]() I've been trying but cannot figure it out so I'm seeking help.ĭon't want to moralize a lot, but you should have started your assigment earlier, as it often happens, assigments appear not to be so easy as you may assume at the beginning. In your code, you possibly have one fundamental flaw already-C is going to have a decimal component as 25C and 26C are significantly different in F-you are the designer though, and if you choose int's, then you may not deem that Important.īTW: according to coding metrics a good programmer can produce about 40 lines of good code a day, on an average, in a project.ĭariun Crown wrote:Basically this is it, Tuesday I have this program due. What you are asking us to do now is to be your debugger-IMO: not going to happen.Īccording to your assignment description you need to enter the value in either F or C, then choose the output. Give an analysis of the specific problem and the error code it gives you and tell us what it is doing and how you need it to change. Get it to compile, do it incrementally like I said, and if you have a specific problem, then ask us for help on that specific problem. 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 |