(Solved) : 112 Zylab Training Basics Zylab Platform Used Without Training Bit Training May Help Stude Q44005730 . . .
1.12 zyLab training: Basics
While the zyLab platform can be used without training, a bit oftraining may help some students avoid common issues.
The assignment is to get an integer from input, and output thatinteger squared, ending with newline. (Note: This assignment isconfigured to have students programming directly in the zyBook.Instructors may instead require students to upload a file). Belowis a program that’s been nearly completed for you.
- Click “Run program”. The output is wrong. Sometimes a programlacking input will produce wrong output (as in this case), or nooutput. Remember to always pre-enter needed input.
- Type 2 in the input box, then click “Run program”, and note theoutput is 4.
- Type 3 in the input box instead, run, and note the output is6.
When students are done developing their program, they can submitthe program for automated grading.
- Click the “Submit mode” tab
- Click “Submit for grading”.
- The first test case failed (as did all test cases, but focus onthe first test case first). The highlighted arrow symbol means anending newline was expected but is missing from your program’soutput.
Matching output exactly, even whitespace, is often required.Change the program to output an ending newline.
- Click on “Develop mode”, and change the output statement tooutput a newline: System.out.println(userNumSquared);. Type 2 inthe input box and run.
- Click on “Submit mode”, click “Submit for grading”, and observethat now the first test case passes and 1 point was earned.
The last two test cases failed, due to a bug, yielding only 1 of3 possible points. Fix that bug.
- Click on “Develop mode”, change the program to use * ratherthan +, and try running with input 2 (output is 4) and 3 (output isnow 9, not 6 as before).
- Click on “Submit mode” again, and click “Submit for grading”.Observe that all test cases are passed, and you’ve earned 3 of 3points.
LAB
Expert Answer
Answer to 1.12 zyLab training: Basics While the zyLab platform can be used without training, a bit of training may help some stude…
OR