While the zyLab platform can be used without training, a bit of training may help some students avoid
issues.
The assignment is to get an integer from input, and output that integer squared, ending with newline.
assignment is configured to have students programming directly in the \texttt{Book}. Instructors may instead
students to upload a file). Below is a program that's been nearly completed for you.
1. Click "Run program". The output is wrong. Sometimes a program lacking input will produce wrong
(as in this case), or no output. Remember to always pre-enter needed input.
2. Type 2 in the input box, then click "Run program", and note the output is 4.
3. Type 3 in the input box instead, run, and note the output is 6.
When students are done developing their program, they can submit the program for automated grading
1. Click the "Submit mode" tab
2. Click "Submit for grading".
3. The first test case failed (as did all test cases, but focus on the first test case first). The highlighted
symbol means an ending newline was expected but is missing from your program's output.
Matching output exactly, even whitespace, is often required. Change the program to output an ending newline
1. Click on "Develop mode", and change the output statement to output a newline:
\texttt{print(user\_num\_squared)}. Type 2 in the input box and run.
2. Click on "Submit mode", click "Submit for grading", and observe that now the first test case passes and a
point was earned.
The last two test cases failed, due to a bug, yielding only 1 of 3 possible points. Fix that bug.
1. Click on "Develop mode", change the program to