Runicode

Members
  • Content count

    38
  • Joined

  • Last visited

Community Reputation

122 Neutral

About Runicode

  • Rank
    Member
  1. autodesk free software

    [quote name='Ben Apuna' timestamp='1313412609' post='4849351'] Yeah Autodesk has been doing this for a while now. Not PLE anymore, full non-commercial licenses for students for pretty much any software they have to offer. [url="http://students.autodesk.com/?nd=download_center"]Autodesk Student Download Center[/url] EDIT: I forgot to mention in case you didn't know about it. Microsoft also has a similar program called DreamSpark for their software. [url="https://www.dreamspark.com/default.aspx"]Microsoft DreamSpark[/url] [/quote] This is great! A couple of questions though, I had their PLE version a few years back and it placed a water mark on everything you produced. Is this still the case? Is this more of a timed trial version?
  2. Hi all, I'm continuing my Java studies before I jump into working on a game and ran into an issue that I just can't seem to solve. I have no idea what's wrong with this code: [code] import java.util.Scanner; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) throws FileNotFoundException, IOException { Scanner in = new Scanner( System.in ); // StudentInfo temp storage int studentCount, year; String last, first, email, major; double gpa; // CourseInfo temp storage int courseCount; String course, days, times; // Prompt for input file path System.out.print( "Enter the input file path: " ); String inputFileName = in.next(); File inputFile = new File( inputFileName ); Scanner inFile = new Scanner( inputFile ); // Prompt for output file path System.out.println( "Enter the output file path: " ); String outputFileName = in.next(); PrintWriter outputFile = new PrintWriter( outputFileName ); // Read first line to determine number of students and create array. studentCount = inFile.nextInt(); StudentInfo[] students = new StudentInfo[studentCount]; // Main loop to read in input file for ( int i = 0; i < studentCount; i++ ) { last = inFile.next(); first = inFile.next(); email = inFile.next(); year = inFile.nextInt(); major = inFile.next(); gpa = inFile.nextDouble(); courseCount = inFile.nextInt(); students[i] = new StudentInfo( last, first, email, year, major, gpa, courseCount ); for ( int j = 0; j < courseCount; j++ ) { inFile.nextLine(); // Clear buffer course = inFile.nextLine(); days = inFile.next(); times = inFile.next(); CourseInfo newCourse = new CourseInfo( course, days, times ); students[i].setCoursesTaken( newCourse, j ); } inFile.nextLine(); // Clear buffer students[i].setDaysAvailable( inFile.nextLine() ); } // Sort courses StudentInfo temp = new StudentInfo(); boolean swap = false; while ( swap == true ) { swap = false; for ( int i = 0; i < students.length; i++ ) { if ( students[i].getGpa() < students[i+1].getGpa() ) { temp = students[i]; students[i] = students[i+1]; students[i+1] = temp; swap = true; } } } // Output Problems Here!!!!!!! for ( int i = 0; i < students.length; i++ ) { outputFile.println( students[i].getLastName() ); outputFile.println( students[i].getFirstName() ); } // Close input and output files } } [/code] Basically I have a file of student info I'm reading in and that works just fine. My problem is outputting the sorted data back to a file selected by the user. In the output section nothing at all happens. If the file isn't present it gets created correctly, but I can't seem to get anything to write to the txt file at all. I can't figure out what I've done wrong. Any help would be greatly appreciated. Thanks, Runicode EDIT: Wow, what the hell. After posting I added: [code] inFile.close(); outputFile.close(); [/code] And now it works fine. What the heck happened. Why must the files be closed for this to work?
  3. What would be the best way to generate random doubles in the range of -4.6 to 37.5? Should I use Random or the Math class? Thanks, Runicode
  4. [quote name='EricTheRed' timestamp='1301266080' post='4791116'] They do in fact inherit from the same base class. All classes in Java are super classes of the Object class. Just make an array list that can hold Object. You should consider whether or not this is what you really want to do. It sounds like they have no common behaviors, so it may not make much sense to store them in the same array. [/quote] Oh I see. I didn't realize all objects inherited from Object. They are all semi related objects so I guess I'll go ahead and make a base class for them and just use that as the type for the ArrayList since I do need to restrict what objects can be added. Thank you for your help!
  5. Hi. I have 3 completely different classes, none of which inherit from the same base class. Is there a way I can use an ArrayList to store different objects? If so, can someone provide an example of it's use? Thanks for your help! Runicode
  6. Python Hello World...

    I see. Thanks for clarifying.
  7. I've started reading the book Python Programming: An introduction to computer science second edition and I'm walking through some examples in the Appendix which states to launch the python command line and type in: >>> print "Hello, World" and >>> print 3+5 Both statements produce the following results: File "<stdin>", line 1 print "Hello, World" ^ and File "<stdin>", line 1 print 3+5 ^ I'm confused here. The book mentions Python version 3.1, which I have installed. I realize that if I put print ("Hello, World") or print (3+5) it runs correctly. Has the language changed or is my book just wrong? The author then proceeds to use print ("Hello, World") when he creates a python program in notepad. Thanks, Runicode
  8. Good OpenGL Guide

    Can anyone recommend a great beginners guide to OpenGL, starting with setup through basic 3d? I have an excellent understanding of C/C++ and would like to start working in 3d. I have a few sites I'm using but they don't seem to be what I'm looking for. I Also have some exposure to SDL. Thanks, Runicode
  9. Introduction to AI

    Thank you for the feedback on Game AI. I'll take a look at it. How about a reference for AI in general? Any books you recommend? I'm curious what the real difference between Game AI and non Game AI is. Are there many principles that cannot be applied to game AI?
  10. Introduction to AI

    Can anyone recommend a good introductory book or resource on Artificial Intelligence to get me started? I am a complete beginner and would like to start studying AI. Thanks.
  11. lol that's what it looks like.
  12. Yes it is a private not for profit university and it turns out it's actually cheaper than most of the schools I have access to. Can you tell me what mathematics the curriculum is missing? I would like to at some point progress to a masters and I want to make sure my math is up to par. Also, I choose a Computer Science Major with a minor in Computer Information Systems... which is really only 2 additional courses, but I figured why not. Do you think the computer science curriculum is missing some staple CS course work that I should be looking for?
  13. I will be attending the main campus in the evenings whenever possible. The only course work I plan on taking online will be general education and any courses that I can complete with my eyes closed...
  14. I wanted to share an update on my decision and thank everyone for their feedback. I'm planning on attending Nova Southeastern University starting March 13th for a Bachelors of Science with two minors, one in Computer Information Systems and another in Folklore & Mythology. Any thoughts on this curriculum? Based on all the feedback I believe this looks like the right path a combination of online classes and evening ground courses that work with my schedule. It'll take me about 3-4 years total with the credits I'm transfering in and all the cross listed courses that satisfy multiple requirements. Below are the courses I plan to take. Of course this may change as new courses are available... General Education Requirements (30 credits) ... Computer Science Major Requirements (54 credits) Major Prerequisites (19 credits) MATH 2100 Calculus I (4 credits) MATH 2200 Calculus II (4 credits) MATH 3020 Applied Statistics (3 credits) PHYS 2400 Physics I/Lab (4 credits) PHYS 2500 Physics II/Lab (4 credits) Note: These courses may fulfill the General Education 6 credits of math/science requirements. Core Courses (42 credits) CSIS 1400 Discrete Mathematics (3 credits) CSIS 1800 Introduction to Computer and Information Sciences (3 credits) CSIS 1900 Computer Programming I (4 credits) CSIS 2410 Assemblers and Assembly Language Programming (4 credits) CSIS 2950 Computer Programming II (4 credits) CSIS 3400 Data Structures (4 credits) CSIS 3500 Networks and Data Communication (3 credits) CSIS 3750 Software Engineering (4 credits) CSIS 3810 Operating Systems Concepts (3 credits) CSIS 4050 Computer Architecture (3 credits) CSIS 4600 Systems Programming (4 credits) CSIS 4610 Design and Analysis of Algorithms (3 credits) Major Electives (12 credits) CSIS 3530 Artificial Intelligence (3 credits) CSIS 3610 Numerical Analysis (3 credits) CSIS 4650 Computer Graphics (3 credits) CSIS 4800 Introduction to Compilers and Interpreters (3 credits) CIS Minor (17 credits) CSIS 2000 Introduction to Database Systems (3 credits) CSIS 3020 Web Programming and Design (3 credits) CSIS 1900 Computer Programming I (4 credits) <Cross Listed> CSIS 2950 Computer Programming II (4 credits) <Cross Listed> CSIS 3500 Networks and Data Communication (3 credits) <Cross Listed> Folklore & Mythology Minor (15 credits) <All Cross Listed> HUMN 2350 Introduction to Folklore (3 credits) ARTS 3300 Myth and Art (3 credits) HUMN 4310 The Vampire (3 credits) LITR 4510 King Arthur (3 credits) HUMN 2400 Introduction to Celtic Studies (3 credits)
  15. From what you've stated you've learned and assuming you completed the courses in the program I posted, you should be fine getting a programming job though. The westwood degree has much of what a CIS degree contains. Also, have you considered looking for simulation programming jobs?