Nov 16, 2026 | 506 words | 5 min read
10.3. Assignments#
In these assignments, you will:
Write a
whileloop that repeatedly prompts the user for input and stops when a specific condition is met (entering 0)Write a
forloop that runs a set number of times and uses a changing counter value to build an output patternUse string multiplication inside a loop to print a growing pattern from a user-chosen character
Design a flowchart that models a robot’s decision-making process on a conveyor belt
Interpret a written process description and translate it into a visual algorithm
Use loops and conditional logic (
if/elif/else) to decide what action to take for each type of itemCount occurrences during a loop and stop it early when a limit is reached (three “error” items)
Convert comma-separated user input into a list of strings for processing
Write Python programs that carry out the logic shown in a flowchart
Apply modular programming and the course Python Style Guide, including detailed comments, to organize and document your code
Test your programs against sample input/output to confirm they behave correctly
Find and fix errors through debugging and test case analysis
Reflect on how an algorithm could be made more efficient and how an Industrial Engineer might improve a real robotic system
Learning Objectives
- PR01:
Programming Standards - Develop code that follows established programming standards and conventions.
- PR02:
Data Storage - Store and access data appropriately.
- PR03:
Calculations - Perform algebraic, array, relational, and logical operations using a programming language. Effectively utilize built-in functions.
- PC05:
Meeting Assignment Expectations - Fully complete all parts of each assignment according to provided instructions.
Assignments for this Module
Save Deliverables: Ensure all required assignment files are saved and named exactly as specified in the assignment instructions. If a template file name contains the word
template, replace only that word with your Purdue username. When a task lists more than one deliverable, such as a workbook and a report, submit each deliverable to its own matching Gradescope assignment instead of combining them into one upload.Navigate to Gradescope: Log in to Gradescope. From your Dashboard, open the assignment.
Upload your work: Select the Upload submission method. Drag and drop all required files (or a compressed
.zipfolder) into Gradescope, and select Upload.Confirm Submission: When your upload is successful, you will see a confirmation message on your screen and receive an automated email receipt.
Add Team Members (if applicable): If this is a team assignment, add all team members to the submission. Each teammate should confirm they can see the submission in their own Gradescope account. For help, visit Gradescope’s documentation on adding team members.
Review Autograder Results: Wait a few minutes for the autograder to evaluate the relevant files. Scroll down to view any failed test cases. If you need assistance interpreting the output or errors, ask your teaching team.
Resubmit if Necessary: You can edit your files and select Resubmit as many times as you need before the assignment deadline. Only your final, active submission is graded. (Note: If you need to resubmit, you must upload all required files for the assignment again).
For a detailed walkthrough, review the official Gradescope Submission Guide.