41.7k views
2 votes
1.5 lab: input and formatted output: right-facing arrow

User Kcnygaard
by
8.2k points

1 Answer

0 votes

Lab teaches input & formatted output with arrows made of user-specified characters.

The lab is a good exercise for students who are learning about input and formatted output. It teaches students how to read input from the user and how to print output in a specific format. The lab also teaches students about loops and conditional statements.

The lab can be made more challenging by asking students to print arrows of different sizes and shapes. For example, students could be asked to print arrows with different arrowheads, such as a triangle, square, or circle. Students could also be asked to print arrows that point in different directions, such as up, down, or left.

The lab can also be used to teach students about other programming concepts, such as functions and modules. For example, students could be asked to write a function that prints an arrow of a given size and shape. Students could also be asked to write a module that contains a variety of arrow-printing functions.

Overall, the lab is a good exercise for students who are learning about programming. It is a simple exercise that teaches students about important programming concepts, such as input, output, loops, conditional statements, functions, and modules.

1.5 lab: input and formatted output: right-facing arrow-example-1
User Dastin
by
7.4k points