modular programming, converting to degrees
Hi everyone, I've been given an assignment for practice and it has to do with calculating the sine again but this time I have to use modular programming. I already have a working inlined program, so I'm pretty sure I'll be able to do it.
Apparently when I tried to convert degrees to radians using a subroutine, I get an error when I run it.
Original Code
Error:
I tried googling this problem and others have said that it has to do with the classpath. I'm not sure what they meant by this, if it's the reason for the error. I think if I find out why this doesn't work, then I'll be able to do the rest of the program without any problem.
Re: modular programming, converting to degrees
Did you google classpath? Do you know what it is?
Recommended reading: http://download.oracle.com/javase/tu...ems/index.html
Re: modular programming, converting to degrees
Quote:
Originally Posted by
KevinWorkman
WOW, major face palm! I just realized that I made a HUGE mistake and I think I tried to run the program with .java at the end instead of the file name. Thank you for the recommended reading, it helped me learn about classpath and how important it is! Sorry for wasting your time, I can't believe that I did such a beginner mistake (although I am a beginner).