1. Create the Tex source from a template

Next: 2. Create the Java parts

Open MIAU and unfold the checkin tree so that you can see the section where you want to create the new program problem. For this tutorial, we assume the section is content/test/problems, but you can choose a different one of course. The MIAU window should look like the following (click on the image to get a larger view):

Right-click on the section and select "New > Mumie Document or Course" in the popup menu:

In the wizard that opens, select "Building Blocks (TeX) > Problem > Programming problem" and enter a name for the new document. In the problem we delevelop in this tutorial the user has to calculate the minimum in an array of numbers, so we choose the name "minimum_in_array":

Click "Next". In the window that opens then, select a language:

Click "Next".:

Click "Finish". MIAU creates a skeleton for the Tex source and loads it in the editor:

The skeleton creates some placeholder items that we replace by the real entries. First, switch to the metainfo tab and provide a suitable name and description:

Return to the "Content Block" tab. Here is the code you should see:

\title{Enter title here}

Describe problem here...

\begin{prganswer}{20}{80}                              %
  public static int methodToImplement (int[] array) {  % <-- Change this
    @USER_ANSWER@                                      %
  }
\end{prganswer}

\prgwrapper{net.mumie.test.program.SampleWrapper}      % <-- Change this
\prgevaluator{net.mumie.test.program.SampleEvaluator}  % <-- Change this

\prggrading{0}{1.0}{praise-user-answer}                %
\prggrading{1}{0.5}{array-may-be-empty}                % <-- Change this
\prggrading{3}{0.0}{code-caused-runtime-error}         %

We change the title, the text below the title, and the prganswer environment which creates the input field for the user:

\title{Minimum in array}

Write a Java method which computes and returns the minimum number of an array
of integer numbers. If the array is empty, the largest possible integer number
is to be returned. Complete the following code fragment:

\begin{prganswer}{20}{80}
  public static int getInt (int[] array) {
    @USER_ANSWER@
  }
\end{prganswer}

\prgwrapper{net.mumie.test.program.SampleWrapper}      % <-- Change this
\prgevaluator{net.mumie.test.program.SampleEvaluator}  % <-- Change this

\prggrading{0}{1.0}{praise-user-answer}                %
\prggrading{1}{0.5}{array-may-be-empty}                % <-- Change this
\prggrading{3}{0.0}{code-caused-runtime-error}         %

The textual parts of the problem are now finished. In the next section of the tutorial, we create the Java parts.

Next: 2. Create the Java parts

create_program_problem_01_miau_window.png (114 KB) Marek Grudzinski, 04/07/2013 11:54 AM

create_program_problem_02_new_document.png (112 KB) Marek Grudzinski, 04/07/2013 11:54 AM

create_program_problem_05_tex_template.png (174 KB) Marek Grudzinski, 04/07/2013 11:54 AM

create_program_problem_06_metainfos.png (152 KB) Marek Grudzinski, 04/07/2013 11:54 AM

tutorial_screen_create_program_problem_document_select_language.png (33 KB) Anonymous, 01/31/2014 02:28 PM

tutorial_screen_create_program_problem_document_finish.png (22.5 KB) Anonymous, 01/31/2014 02:28 PM

tutorial_screen_create_program_problem_document_tex.png (54 KB) Anonymous, 01/31/2014 02:42 PM

tutorial_screen_create_program_problem_document_01_start.png (55.5 KB) Anonymous, 01/31/2014 03:10 PM

tutorial_screen_create_program_problem_document_02_new_document.png (455 KB) Anonymous, 01/31/2014 03:10 PM

tutorial_screen_create_program_problem_document_tex_template.png (146 KB) Anonymous, 01/31/2014 03:10 PM

tutorial_screen_create_program_problem_document_metainfos.png (134 KB) Anonymous, 01/31/2014 03:10 PM

Create_program_problem_01_miau_window Create_program_problem_02_new_document Create_program_problem_05_tex_template Create_program_problem_06_metainfos Tutorial_screen_create_program_problem_document_select_language Tutorial_screen_create_program_problem_document_finish Tutorial_screen_create_program_problem_document_tex Tutorial_screen_create_program_problem_document_01_start Tutorial_screen_create_program_problem_document_02_new_document Tutorial_screen_create_program_problem_document_tex_template Tutorial_screen_create_program_problem_document_metainfos
Add picture from clipboard (Maximum size: 500 MB)