Difference between revisions of "Submitting Java Programs to Moodle"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <br /> * Login to Moodle and pick the CSC212 link * Locate the '''Lab 2''' activity in Week 2, Click on it. <br /> <center>400px</cente...")
 
Line 12: Line 12:
 
<center>[[Image:212_moodle_2.png|400px]]</center>
 
<center>[[Image:212_moodle_2.png|400px]]</center>
 
<br />
 
<br />
* Click on the '''Edit''' Tab and copy/paste or type in your Java solution for the Lab.  '''Make sure the name of the file is the same as the name of the file containing it.  So, for this example, the class name is '''Lab2''' (with an uppercase L), and the file name is '''Lab2.java'''.
+
* Click on the '''Edit''' Tab and copy/paste or type in your Java solution for the Lab.  '''Make sure the name of the class is the same as the name of the file containing it.  So, for this example, the class name is '''Lab2''' (with an uppercase L), and the file name is '''Lab2.java'''.
 
<br />
 
<br />
 
<center>[[Image:212_moodle_3.png|400px]]</center>
 
<center>[[Image:212_moodle_3.png|400px]]</center>

Revision as of 19:06, 9 September 2014

--D. Thiebaut (talk) 12:02, 9 September 2014 (EDT)



  • Login to Moodle and pick the CSC212 link
  • Locate the Lab 2 activity in Week 2, Click on it.


212 moodle 1.png


  • Note the information about the submission, and in particular the deadline (usually a week after you start on it).


212 moodle 2.png


  • Click on the Edit Tab and copy/paste or type in your Java solution for the Lab. Make sure the name of the class is the same as the name of the file containing it. So, for this example, the class name is Lab2 (with an uppercase L), and the file name is Lab2.java.


212 moodle 3.png


  • Click on Save to save your program in Moodle
  • Click on Run to verify that your program runs correctly. A console window will open and show the program output.


212 moodle 4.png


If you have errors, correct them and repeat the previous 2 steps
  • Once you are satisfied your program runs correctly, close the console window and click on Evaluate:


212 moodle 5.png


If everything ran smoothly, your program output matches that of the solution program, and you get a 100/100 grade, and a message indicating that your program passed 1 test out of 1. (In the future, your program may get tested with several different inputs).
  • If your program output is not correct, then the Virtual Programming Lab module of Moodle will give you some indications:
    • The grade is 0/100
    • The correct output is shown
    • The output of your program is shown (and we can see the problem: a dash instead of a space)
    • A message indicating that your program failed 1 test out of 1.


212 moodle 6.png