3.4 zyLab training: Interleaved input / output PDF

Title 3.4 zyLab training: Interleaved input / output
Course Data Abstraction and Structures - HONORS
Institution De Anza College
Pages 2
File Size 67.6 KB
File Type PDF
Total Downloads 112
Total Views 135

Summary

This is lab on ZyLab training. The instructor's example illustrates both the program's output and the user's access to the program whether the software is built in an environment where a student communicates with it. The program, on the other hand, does not produce the five numbers (or the newline f...


Description

3.4 zyLab training: Interleaved input / output Class: CIS22C - Lecture Notes Lecture: 3.4 Date: 01/19/2021 Description: This is lab on ZyLab training. The instructor's example illustrates both the program's output and the user's access to the program whether the software is built in an environment where a student communicates with it. The program, on the other hand, does not produce the five numbers (or the newline following the 5, which occurs when the user types 5 and presses enter). Auto-graded programming assignments have a lot of benefits, but they also have some drawbacks. Students frequently have difficulty understanding that the example input/output given in an assignment's specification interleaves input and output, while the software can only output the output bits. If a program's input should be doubled, a teacher might give the following example: Enter x: 5 x doubled is: 10

Students often incorrectly create a program that outputs the 5. Instead, the program should only output the output parts: Enter x: x doubled is: 10

If the software is designed in an environment where a student interacts with a program, the instructor's example shows both the program's output and the user's access to the program. However, the software does not generate the 5 numbers (or the newline following the 5, which occurs when the user types 5 and presses enter).

Also, if the instructor configured the test cases to observe whitespace, then according to the above example, the program should output a newline after Enter x: (and possibly after the 10, if the instructor's test case expects that). The software below echoes the user's feedback to the output in an inappropriate manner.  Have a go at applying it for grading (click "Submit mode", then "Submit for grading"). It's worth noting that the test cases all fail. The highlighting in the first test case shows that production 3 and newline is unexpected. The 5 and newline in the second test case were unexpected.  Remove the code that causes the user's input to be echoed back to the output and resubmit. Now, all of the test cases should pass. #include using namespace std; int main() { int x; cout x; cout...


Similar Free PDFs